Leverage ActivityListener.AutoGenerateRootContextTraceId - #1007
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1007 +/- ##
==========================================
- Coverage 68.91% 68.86% -0.06%
==========================================
Files 220 220
Lines 5999 5999
Branches 984 983 -1
==========================================
- Hits 4134 4131 -3
- Misses 1596 1599 +3
Partials 269 269
|
| disposes the containing exporter. | ||
| * `BroadcastActivityProcessor`is disposable and it disposes the processors. | ||
|
|
||
| * Samplers now get the actual TraceId of the Activity to be created. |
There was a problem hiding this comment.
I guess we need an empty line here.
There was a problem hiding this comment.
Your favourite tool caught it as well!
|
Just want to clarify my understanding, next OTel release will coincide with preview 8. So, will preview 8 will not contain the removal of |
Preview8 won't remove |
|
@cijothomas @reyang Hey I just noticed something, this broke the var parentContext = samplingParameters.ParentContext;
if (parentContext == default)
|
Fixes portions of #941 #953
Changes
Leverage ActivityListener.AutoGenerateRootContextTraceId so that sampling callbacks can get the actual TraceId of the to-be-created Activity and make decision based on TraceId.
Before this PR, Samplers generated a random TraceId, and made sampling decision. But this generated TraceID was not actually used when the Activity is created, leading to broken traces, if samplers made decision based on the TraceId.
Added Tests. There are TODOs which require follow up.
Please provide a brief description of the changes here. Update the
CHANGELOG.mdfor non-trivial changes.For significant contributions please make sure you have completed the following items: