-
Notifications
You must be signed in to change notification settings - Fork 862
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
Implement the text format so that w3c trace context headers are propagated. #601
Implement the text format so that w3c trace context headers are propagated. #601
Conversation
Codecov Report
@@ Coverage Diff @@
## master #601 +/- ##
===========================================
+ Coverage 78.28% 78.7% +0.41%
- Complexity 694 707 +13
===========================================
Files 86 87 +1
Lines 2459 2479 +20
Branches 233 236 +3
===========================================
+ Hits 1925 1951 +26
+ Misses 445 441 -4
+ Partials 89 87 -2
Continue to review full report at Codecov.
|
static final String TRACEPARENT = "traceparent"; | ||
static final String TRACESTATE = "tracestate"; | ||
private static final List<String> FIELDS = | ||
Collections.unmodifiableList(Arrays.asList(TRACEPARENT, TRACESTATE)); |
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.
I think this is the correlation-context from the w3c.
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.
Is there something you think should be renamed in here?
Sorry, the title of the PR is probably a little misleading. The purpose here was to at least propagate the trace context headers, so traces aren't broken. With the current implementation (that just throws UnsupportedOperationExceptions), traces are broken when requests flow through the tracers. I'm happy to update any and all verbiage as appropriate, or simply have the methods return empty contexts and not inject anything (still resulting in broken traces, but at least not throwing exceptions). |
I was confused about where the headers needed to be propagated. This is actually fixed for real in #608 . closing! |
No description provided.