Why can't my code pass the baggage content downstream? #10403
Replies: 1 comment 1 reply
-
hi @shenlvcheng! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The upstream code is as follows
`Context context = Context.current();
Baggage baggage = Baggage.fromContextOrNull(context);
if (baggage == null) {
The downstream cannot retrieve the baggage; the downstream code is as follows.
``Context context = Context.current();
Baggage baggage = Baggage.fromContextOrNull(context);
if (baggage == null) {
The downstream code for baggage returns null:
Baggage baggage = Baggage.fromContextOrNull(context);
Using HttpClient 4.0 as the framework for HTTP requests to interact.
Using OpenTelemetry Java Agent 2.0.
Beta Was this translation helpful? Give feedback.
All reactions