Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.11.6, 3.16.0
-
Unknown
Description
The native OTEL MDC keys are not the same as the ones used by Camel OTEL component.
For instance:
`trace_id` vs `traceId`
`span_id` vs `spanId`
This is causing issue to log the MDC values in a consisting way that affects ability to correlate logs together.
Could we consider aligning with the OTEL spec for MDC keys?
Reference:
https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/logger-mdc-instrumentation.md
https://camel.apache.org/components/3.16.x/others/opentelemetry.html#_mdc_logging