Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17902

camel-opentelemetry - OTEL MDC keys are not matching OTEL keys

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.11.6, 3.16.0
    • 3.17.0
    • camel-opentelemetry
    • 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

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            hugo.veillette@ia.ca Hugo Veillette
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: