Baggage propogation not working in Java application with auto instrumentation enabled #4351
-
Hi, We have enabled auto instrumentation in one of our Java application. We are using opentelemetry-javaagent-all-1.6.2.jar for this purpose. This Java app exposes REST endpoints (Jersey over Jetty web server). Our problem is we are unable to propogate baggage information. We want to have some key-value pairs that should get propogated from client to server (Java app) and further also in every span. For this, we tried below but no success in any of them:
Are we doing anything wrong here? What is the correct way to propogate baggage or some common information across spans? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hey @vishalgoel1988 ,
This feature is not present in the 1.6.x versions - it will become a part of the 1.7.0 release. The docs you can see on the Regarding baggage: baggage is not added automatically to spans. It definitely should be propagated and accessible by e.g. calling
If you want to add baggage entries as span attributes to every span, you can implement a custom |
Beta Was this translation helpful? Give feedback.
-
We got the issue. We were passing header as baggage: value1 instead of baggage: key1=value1 |
Beta Was this translation helpful? Give feedback.
We got the issue. We were passing header as baggage: value1 instead of baggage: key1=value1