Update the internal global TextMapPropagator#1261
Update the internal global TextMapPropagator#1261MrAlias merged 4 commits intoopen-telemetry:masterfrom
Conversation
Include feedback from a post-merge review of open-telemetry#1258
|
@seh looks like you're not a member of @open-telemetry so I can't request a review from you in the automation, but would appreciate your feedback here. |
seh
left a comment
There was a problem hiding this comment.
This looks good.
One alternative to consider: Introduce a function like this:
func (p *textMapPropagator) effectiveDelegate() otel.TextMapCarrier {
if d := p.currentDelegate(); d != nil {
return d
}
return p.noop
}Then, in the three cases here, you would call it, for example,
return p.effectiveDelegate().Inject(ctx, carrier)
Codecov Report
@@ Coverage Diff @@
## master #1261 +/- ##
========================================
- Coverage 76.4% 76.4% -0.1%
========================================
Files 132 132
Lines 5928 5922 -6
========================================
- Hits 4533 4528 -5
+ Misses 1146 1143 -3
- Partials 249 251 +2
|
What does it take to become a member? Where do I send my check? |
😆 Instructions are here. Please consider me as one of your sponsors when you submit your application. |
seh
left a comment
There was a problem hiding this comment.
My vote doesn't count, but this looks good to me, modulo the one extra word in the documentation comment.
Co-authored-by: Steven E. Harris <seh@panix.com>
Count me as a second sponsor! |
* Update the internal global TextMapPropagator Include feedback from a post-merge review of open-telemetry#1258 * Apply feedback * Update api/global/internal/propagator.go Co-authored-by: Steven E. Harris <seh@panix.com> Co-authored-by: Steven E. Harris <seh@panix.com>
It's been a while, but please see open-telemetry/community#695. |
Include feedback from @seh in a post-merge review of #1258