-
Notifications
You must be signed in to change notification settings - Fork 98
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
feat!: support user-specified context header propagation #1029
Conversation
de17efe
to
f700581
Compare
Codecov Report
@@ Coverage Diff @@
## master #1029 +/- ##
==========================================
+ Coverage 94.89% 94.98% +0.09%
==========================================
Files 96 96
Lines 6226 6246 +20
Branches 484 474 -10
==========================================
+ Hits 5908 5933 +25
+ Misses 161 159 -2
+ Partials 157 154 -3
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1029 +/- ##
==========================================
+ Coverage 94.89% 94.95% +0.06%
==========================================
Files 96 96
Lines 6226 6249 +23
Branches 484 475 -9
==========================================
+ Hits 5908 5934 +26
+ Misses 161 160 -1
+ Partials 157 155 -2
Continue to review full report at Codecov.
|
BREAKING CHANGE: This change modifies/removes APIs that assume a particular format for trace context headers; in other words, any place where the user would deal with a stringified trace context, they would now deal with a TraceContext object instead. This affects three APIs: `getResponseTraceContext` (input/output has changed from string to TraceContext), `createRootSpan` (input RootSpanOptions now accepts a TraceContext instead of a string in the traceContext field), and `Span#getTraceContext` (output has changed from string to TraceContext).
Fixes #949, supercedes #950
With this change:
Tracer
.@opencensus/propagation-stackdriver
(behavior should match what the plugins do currently)Tracer#traceContextUtils
no longer has methods for encoding and decoding trace context as a string.TraceContext
objects instead of strings:Tracer#getResponseTraceContext
Tracer#createRootSpan
Span#getTraceContext
propagation
field with an instance ofOpenCensusPropagation
to override the default implementation.