-
Notifications
You must be signed in to change notification settings - Fork 19
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
Remove unused headers: X-B3-ParentSpanId
and X-OrigSpanId
#778
Conversation
`X-B3-ParentSpanId` isn't standard zipkin, and doesn't provide any data we don't already have. The parent span of an incoming request span is the value of the `X-B3-SpanId` header. There's no reason for additional header values. `X-OrigSpanId` is a custom header added to provide some amount of tracing functionality when traces aren't sampled, however it hasn't quite worked and isn't supported by alternative tracing engines.
Generate changelog in
|
@CRogers This PR should reduce some of the cruft discussed on palantir/witchcraft-java-logging#46 :-) |
* | ||
* @deprecated Use the variant without an originating span id | ||
*/ | ||
@SuppressWarnings("InlineMeSuggester") |
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.
What's this magic?
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.
Error prone has an inlineme annotation to document replacements on undesirable call sites. We don’t want to automate this migration because there’s potentially other data that can be removed.
Released 6.4.0 |
X-B3-ParentSpanId is absolutely a part of standard zipkin but it's only used in an older style of propagation, where the server doesn't make a new span but rather "joins" onto the span the client created. |
X-B3-ParentSpanId
isn't standard zipkin, and doesn't provideany data we don't already have. The parent span of an incoming
request span is the value of the
X-B3-SpanId
header. There'sno reason for additional header values.
X-OrigSpanId
is a custom header added to provide some amount oftracing functionality when traces aren't sampled, however it
hasn't quite worked and isn't supported by alternative tracing
engines.
==COMMIT_MSG==
Remove unused headers:
X-B3-ParentSpanId
andX-OrigSpanId
==COMMIT_MSG==