STOR-4395 Improve span parenting for Hibernate events, add TODOs for other events#4947
STOR-4395 Improve span parenting for Hibernate events, add TODOs for other events#4947fhanau wants to merge 1 commit into
Conversation
|
@jasnell @danlapid this PR attempts to address STOR-4395, but I don't understand the underlying issue well enough to know if this is the right approach in each case – see the TODO comments. Input on that will be useful, I'm also not sure if we'll need to do the same thing for Automated Tracing too – as is, the makeAsyncTraceScope() call only affects the internal tracing system. |
|
I actually don't like |
Edit: If the span lifetimes are all correct and they end while the IoContext is still available, then it is impossible for them to be attributed to a different worker event. |
32d42e2 to
a056c43
Compare
|
Updated the PR to only fix this for Hibernate events, adding TODO(later) for things that were unclear to me. This only partially addresses the issue now, but should be wholly uncontroversial at least. |
…other events For some customEvents, we did not create trace scopes so far. Note that this only affects the internal tracing system.
a056c43 to
a92d307
Compare
|
@jclee since you opened the issue for this – this PR is a partial fix for STOR-4395, adding TODOs for the cases that are non-trivial to support. Unfortunately I haven't been able to secure approval for this, lmk if this half-measure works for you if I should close it. |
For some customEvents, we did not create trace scopes so far. Note that this only affects the internal tracing system.