Skip to content
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

Fixes bug where debug did not imply sampled #663

Merged
merged 1 commit into from
Mar 21, 2018

Conversation

codefromthecrypt
Copy link
Member

It is true the b3-propagation spec suggests debug implies sampled.
This leniently parses a missing X-B3-Sampled header as long as
X-B3-Flags: 1 is present.

Fixes #661

It is true the b3-propagation spec suggests debug implies sampled.
This leniently parses a missing `X-B3-Sampled` header as long as
`X-B3-Flags: 1` is present.

Fixes #661
@codefromthecrypt codefromthecrypt merged commit bcc97a2 into master Mar 21, 2018
@codefromthecrypt codefromthecrypt deleted the debug-implies-sampled branch March 21, 2018 13:57
@tgeens
Copy link

tgeens commented Mar 21, 2018

What is the reasoning to handle this in the builder and not in the sampled() method ?

Extraction from the B3-headers should work correctly with this PR, but I expect this assertion would fail:

assertThat(context.toBuilder().debug(true).sample(null).build().sample()).isTrue();

@codefromthecrypt
Copy link
Member Author

codefromthecrypt commented Mar 21, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants