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

Support sampling flag propagation #8

Merged
merged 4 commits into from
Apr 4, 2018
Merged

Support sampling flag propagation #8

merged 4 commits into from
Apr 4, 2018

Conversation

sfackler
Copy link
Member

Closes #7

This doesn't support trace ID-only propagation but that's way more obscure.

@sfackler sfackler requested a review from bavardage March 16, 2018 05:13
pub fn set_sampling_flags(flags: SamplingFlags, headers: &mut Headers) {
if flags.debug() {
headers.set(XB3Flags);
} else if let Some(sampled) = flags.sampled() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know one shouldn't send sampled header if debug is true (per https://github.com/openzipkin/b3-propagation#debug-flag-1 ...) but https://github.com/palantir/http-remoting-api/blob/1.8.0/tracing/src/main/java/com/palantir/remoting/api/tracing/TraceHttpHeaders.java#L20 suggests http-remoting doesn't yet support the flags header

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

smh

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sfackler sfackler merged commit d362577 into master Apr 4, 2018
@sfackler sfackler deleted the propagation branch April 4, 2018 00:59
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