-
Notifications
You must be signed in to change notification settings - Fork 52
Baggage items are not being put in scope when extracted #122
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
Comments
We were discussing this issue on Slack. I'm posting the conversation here for keeping track: Marcin Grzejszczak Marcin Grzejszczak Bart De Neuter
So if I give the context from the extracted span, the baggage is returned.
It is also not very clear from the documentation when you need to use Marcin Grzejszczak Bart De Neuter Bart De Neuter Bart De Neuter
Marcin Grzejszczak Marcin Grzejszczak Marcin Grzejszczak Marcin Grzejszczak
Bart De Neuter
As I understand correctly, the property remote-fields will set the key as is on the header. The rest of the baggage items are still put on the Kafka record. Marcin Grzejszczak Marcin Grzejszczak Bart De Neuter Marcin Grzejszczak Marcin Grzejszczak Bart De Neuter 👍 Marcin Grzejszczak
so this test works until the last assertion. Instead of calling Bart De Neuter Bart De Neuter
Marcin Grzejszczak Bart De Neuter |
Hi,
We send baggage items as headers on Kafka records. When we extract the span in the consumer and put the span in scope with
tracer.withSpan(extractedSpan)
, the bagage items are not available.I created a test project with a failing test. In this test:
I'm using the OpenTelemetry bridge and you find the test project here:
https://github.com/bdeneuter/baggage-test
The text was updated successfully, but these errors were encountered: