Capture task span context in thread context to parent nested tasks#80758
Conversation
|
Pinging @elastic/es-distributed (Team:Distributed) |
There was a problem hiding this comment.
This was populated in small chunks from multiple threads and loosing updates sometimes
|
@elasticmachine please run elasticsearch-ci/part-1 |
|
@elasticmachine please run elasticsearch-ci/part-2 |
DaveCTurner
left a comment
There was a problem hiding this comment.
Hopefully CI will be happy with this, LGTM at least.
x-pack/plugin/apm-integration/src/main/java/org/elasticsearch/xpack/apm/APM.java
Outdated
Show resolved
Hide resolved
1dd8e9e to
516d0e5
Compare
x-pack/plugin/apm-integration/src/main/java/org/elasticsearch/xpack/apm/APMTracer.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
nit: I'd call this stashWithoutHeader()
There was a problem hiding this comment.
As the other stashXXX() methods start off with the default thread context, I avoided prefixing this one with stash. I don't feel strongly on it though. What do you reckon @DaveCTurner ?
There was a problem hiding this comment.
I see, feel free to merge like it is so that we don't waste time on naming :)
There was a problem hiding this comment.
Yeah I also don't want to say stash. I didn't come up with an obviously better name, although maybe I'd have called it something like withoutRequestHeaders or removingRequestHeaders rather than using the imperative remove. NBD anyway, naming is hard.
13875ee to
886255c
Compare
Pass a task's span context via the
ThreadContextto parent nested tasks.