-
Notifications
You must be signed in to change notification settings - Fork 117
Add b3multi option to OTEL_PROPAGATORS #272
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #272 +/- ##
==========================================
- Coverage 36.50% 36.41% -0.10%
==========================================
Files 41 41
Lines 3169 3166 -3
==========================================
- Hits 1157 1153 -4
- Misses 2012 2013 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Thanks. I was afraid of this being the case :). I think this PR should break use of |
Currently, if you use
So basically it doesn't affect existing Do you think that's fine or do you think something should be changed here? |
Ooh, my bad, I was taking into account my changes in the proapgators rewrite PR which has some extra lines about b3/multib3. This should be fine. |
@tsloughter Pushed https://github.com/open-telemetry/opentelemetry-erlang/compare/a5b7fccbca09f49b2f6143b69410b38929dbe5ad..b3fd84be88b052041f94ef6e93470b23fe57ddbd which should fix the test coverage check, but workflow has to be approved |
It seems that this doesn't work exactly as I expected. So the
Which uses
basically looks:
I'm not really what's the best way to fix this. Rename propagators to text_map_propagators? |
Oh, where is |
The issue is that it is not used. Basically, propagators sets it to b3 (when using env var) but then that is just ignored. So even though I use b3multi env variable, everything is still propagated using w3c trace context. Currently, it seems that OTEL_PROPAGATORS is basically a no-op. At least that's how I understand this. |
@tsloughter I added a commit that fixes the issue I mentioned: 6942f08 . I have no idea if this is the actual approach you'd want to use but it should be backwards compatible and it does work. |
I think this is good. |
According to [OTEL Spec][1] there are `b3` and `b3multi`. The latter is supposed to be used when [Multi B3 format][2] is used. This is exactly what b3_propagators() currently is doing. [1]: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#general-sdk-configuration [2]: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/context/api-propagators.md#b3-extract
@tsloughter I rebased against main branch but it says code cov reduced 0.02%. Would it be possible to access codecov to see what exactly it means? I'm getting Unauthorized when accessing https://app.codecov.io/gh/open-telemetry/opentelemetry-erlang/compare/272 |
@indrekj the codecov is really screwed up and needs to be fixed, it is not accurate right now. So I would say don't worry about it, but if you want and have the time you are welcome to try fixing it ;). It looks like I have to add you to the github team to give you access, that might have to go through someone else since its a cncf project. |
@tsloughter do you think this could be merged in this case? Or is there anything else I need to do? |
Hey, yea, sorry about that, I thought I'd get the other propagators change in much earlier and thought merging it with the other PR would be easier than the other way around. I'll merge this now since that wasn't the case. |
According to OTEL Spec there are
b3
andb3multi
. The latter issupposed to be used when Multi B3 format is used. This is exactly
what b3_propagators() currently is doing.