-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Improve documentation for baggage propagation into MDC #34977
Comments
Hey Marcin :) With OTel support we have 2 ways of supporting baggage. One, where baggage
That's exactly how this should be working. We take all the baggage from all possible places (as mentioned above) and then we put it into MDC. Do you observe sth else? |
Thanks for your quick reply Marcin :). I needed some time to analyze those files and my configuration. In the end, I slightly misused the configuration. I was using the W3C approach with the I've encountered that case, because for the In hindsight, if you know it (it might be deducted from the code examples after I re-read the Micrometer Tracing documentation), it is fine.
Essentially yes, but with the need to define Nevertheless, if it is a deliberate decision (performance?), with some documentation tweaks this issue could be closed. |
Ok i guess we need to improve the docs with better examples. Brave requires to be explicit about these entries so we've decided to go with the same approach with otel |
Thanks to @marcingrzejszczak and #32480, a standard OpenTelemetry "baggage content" is automatically propagated by default (with just
micrometer-tracing-bridge-otel
added). However, to have it accessible via (logging) MDC, it is required to add some extra configuration (onlyspanId
andtraceId
are propagated to MDC automatically):It might be confusing, as one might expect to have the correlation and remote-fields available for non-default fields (while "baggage" seems to be - proposed - standard - https://www.w3.org/TR/baggage/#header-name).
If the "baggage" is enabled in tracing and if anything is provided inside why not put it also into MDC (to be clear - just to be accessible with custom custom logging pattern from MDC)?
Things to consider:
The text was updated successfully, but these errors were encountered: