-
Notifications
You must be signed in to change notification settings - Fork 1.2k
unused bit in trace flag to not fail traceparent parsing #7398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7398 +/- ##
=====================================
Coverage 85.5% 85.5%
=====================================
Files 275 275
Lines 24614 24609 -5
=====================================
- Hits 21046 21043 -3
+ Misses 3189 3187 -2
Partials 379 379
🚀 New features to boost your workflow:
|
This will need a changelog entry. Also, while this change looks good, I think I recall a discrepency in the specification. I can't find that anymore though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current version of this specification (00) only supports a single flag called sampled.
Please provide evidence that the "W3C standard says the interpretation of trace flag should only look for the supported bit"
Possible duplicate of #5075 |
The W3C spec mentions (in the Processing Model section) that I think it's a matter of how do we interpret the above text, should the step of IMO it should not be considered as parsing failure because the W3C spec also mentions (in the Trace Flags section) that The other part of the spec Also, failing the parsing just because of unknown bit would decrease interoperability with potential future versions, for example the level 2 proposal of W3C trace context adds a new bit in the trace flag while keeping the same version.
it's a bit different, IIUC that one was to keep the unknown bit even in the outgoing header, which violates the spec of |
Thanks! Updated the change log as well. |
W3C standard says the interpretation of trace flag should only look for the supported bit, in this case the sampled bit. Therefore the presence of unused bit should not fail the parsing.
W3C standard says the interpretation of trace flag should only look for the supported bit, in this case the sampled bit. Therefore the presence of unused bit should not fail the parsing.
ref: https://www.w3.org/TR/trace-context/#trace-flags