-
Notifications
You must be signed in to change notification settings - Fork 96
set CurrentRootSpan correctly #532
set CurrentRootSpan correctly #532
Conversation
LGTM Related topic: should a child span become a parent for the next child span with CLS? |
Codecov Report
@@ Coverage Diff @@
## master #532 +/- ##
==========================================
- Coverage 95.21% 94.96% -0.26%
==========================================
Files 147 147
Lines 9870 9568 -302
Branches 539 539
==========================================
- Hits 9398 9086 -312
- Misses 472 482 +10
Continue to review full report at Codecov.
|
Yes, currently it's not possible with |
@mayurkale22 what do you think about this proposal #498 it would make it possible. |
While debugging #526, I found we are not assigning
currentRootSpan
correctly, especially in case of tracer with cls. Ideally, we should setcurrentRootSpan
before theonStartSpan
event. This change is done in 92edaa9#diff-b46c2c01fbf239aae015e19185803e0dL154The
onStartSpan
andonEndSpan
events contains following check ->