fix aioredis span context handling#1462
Conversation
|
Hi @qeternity, good catch! I took the liberty to open a PR against your branch with a test, it's here: zumalabs#1 |
basepi
left a comment
There was a problem hiding this comment.
I think we want to set span.context if it doesn't exist.
add test and make if clause more specific
|
Hi @beniwohli @basepi - sure thing, just needed to get a working branch to triage some internal deps issues. Merging both of your suggestions. |
|
@qeternity @basepi actually, I don't think we should initialize apm-agent-python/elasticapm/traces.py Line 492 in ec9a733 DroppedSpan instances, we discard the whole thing in the end, so we'd do unnecessary work here by initializing it.
|
|
@beniwohli this was my understanding as well from my initial read of the repo - I'll revert the last commit |
7146bfb to
c6132d5
Compare
|
Yep, my bad! Should have investigated more closely. |
* fix aioredis span context handling * add test and make if clause more specific Co-authored-by: Benjamin Wohlwend <[email protected]>
What does this pull request do?
Checks span context before attempting to mutate values.
A bit surprised this made it into a release...completely breaks code outside of instrumented paths.