-
Notifications
You must be signed in to change notification settings - Fork 88
ZipkinHttpHeaders isn't quite right on flags #201
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
Comments
@nonspecialist mind having a crack at fixing this? |
@adriancole C# is really not my strong point (I only picked it up 2 days ago) but I'll have a crack at it |
@adriancole I'm looking for clarification on the B3 Propagation spec, and what should happen if
What's unclear is whether a sender should ever emit |
I wouldn't interpret Flags 0 in any way except for the same as unset
|
Hinting from the below comment and an encoding bug I think flags needs to be revisited:
The
X-B3-Flags
header back maybe 2012 or so was thinking about becoming more, but never did. Reasons including awkward overlap with sampled, and also it is mainly covering binary encoding concerns, not http ones. For this reason, back in the day, we documentedX-B3-Flags
based on how all the libraries worked, essentially 1 being the only valid value, which is the debug flag.https://github.com/openzipkin/b3-propagation#debug-flag-1
Emitting bitset behavior will actually either restart traces or reset the sampling decision, so this should be changed fairly urgently to only send the header when debug is set and not otherwise.
See openzipkin/zipkin-go#53
The text was updated successfully, but these errors were encountered: