Skip to content
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

Propagator.Extract not fetching the baggage #2898

Closed
RohitRanjanMS opened this issue Feb 15, 2022 · 2 comments · Fixed by #2901
Closed

Propagator.Extract not fetching the baggage #2898

RohitRanjanMS opened this issue Feb 15, 2022 · 2 comments · Fixed by #2901
Labels
question Further information is requested

Comments

@RohitRanjanMS
Copy link

Hi,

I am trying to fetch baggage from the headers using Propagator.Extract. I do get the traceParent but the parentContext.Baggage is empty. I am using RabbitMQ and I am including the baggage before posting the message. I can see the baggage in the header as well, attached screeshot.

This is the sample that I am refering to https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/examples/MicroserviceExample/Utils/Messaging/MessageReceiver.cs#:~:text=Baggage.Current%20%3D%20parentContext.Baggage%3B

image

I am expecting the baggage to be passed over to the worker service.
This is how I am setting the baggage in the MessageSender:
Baggage.SetBaggage("OtelBaggage", "OTelBaggageValue");

@RohitRanjanMS RohitRanjanMS added the bug Something isn't working label Feb 15, 2022
@RohitRanjanMS
Copy link
Author

@utpilla @cijothomas FYI

@cijothomas cijothomas added question Further information is requested and removed bug Something isn't working labels Feb 15, 2022
@cijothomas
Copy link
Member

https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry#troubleshooting Please use this guide and see if SDK/other components hit any internal exceptions.

We'll need to see a minimal repro app to confirm if this is a bug, or simply incorrect usage in the examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants