Skip to content

Baggage must be explicitly injected with the returned context? #1759

Answered by chiarag
chiarag asked this question in Q&A
Discussion options

You must be logged in to vote

Note that if I add this, then it does get injected without being explicit:

context_with_baggage = OpenTelemetry::Baggage.build { |b| b.set_value('lost_bag', 'where is it?') }
OpenTelemetry::Context.attach(context_with_baggage)

Is that basically the way to make the baggage propagate properly?

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@kaylareopelle
Comment options

Answer selected by kaylareopelle
Comment options

You must be logged in to vote
3 replies
@kaylareopelle
Comment options

@kaylareopelle
Comment options

@chiarag
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants