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
otel-bridge: add trace_flags to MDC #229
Comments
I think so (we used to have it in Sleuth) but what would be the use-case for that? |
I would like to log the |
Let me ping @marcingrzejszczak to get some background about why this was removed from Sleuth. |
There's no point in having this in the logs out of the box. If we're talking about log correlation it doesn't matter if the span is sampled or not. |
If it does not make sense to have it out of the box, can you explain a bit how can I have it with custom code please ? I though to write a custom
|
I've opened the scope of getters for tracing |
Thanks a lot ! |
In
Slf4JEventListener
ofmicrometer-tracing-otel-bridge
,span_id
andtrace_id
are added to MDC.tracing/micrometer-tracing-bridges/micrometer-tracing-bridge-otel/src/main/java/io/micrometer/tracing/otel/bridge/Slf4JEventListener.java
Line 58 in 4f14a45
Would it be possible to add also
trace_flags
which allow to know when a request is sampled (see https://www.w3.org/TR/trace-context/#trace-flags)The text was updated successfully, but these errors were encountered: