Describe the bug
I am trying to enable tracing in a JMS based application with
export OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true
export OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_CAPTURE_HEADERS=key,correlationId
It seems only the headers in lowercase are getting captured in the span attributes like "key" but not "correlationId" which is in camelCase
instead if it was set like OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_CAPTURE_HEADERS=key,correlationid and the actual headers too had a lowercase "correlationid" then it would get captured successfully in the captured span attributes.
Is it the case that the agent is programmed to capture only lowercase headers ?
Steps to reproduce
instrument a jms based app with
export OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true
export OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_CAPTURE_HEADERS=key,correlationId
where headers are in camelCase
Expected behavior
the configured jms headers in OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_CAPTURE_HEADERS are captured in the span attributes irrespective of their case
Actual behavior
only the lowercase configured jms headers in OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_CAPTURE_HEADERS are captured in the span attributes
Javaagent or library instrumentation version
2.17.1
Environment
JDK:
OS:
Additional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
Describe the bug
I am trying to enable tracing in a JMS based application with
export OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true
export OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_CAPTURE_HEADERS=key,correlationId
It seems only the headers in lowercase are getting captured in the span attributes like "key" but not "correlationId" which is in camelCase
instead if it was set like OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_CAPTURE_HEADERS=key,correlationid and the actual headers too had a lowercase "correlationid" then it would get captured successfully in the captured span attributes.
Is it the case that the agent is programmed to capture only lowercase headers ?
Steps to reproduce
instrument a jms based app with
export OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true
export OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_CAPTURE_HEADERS=key,correlationId
where headers are in camelCase
Expected behavior
the configured jms headers in OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_CAPTURE_HEADERS are captured in the span attributes irrespective of their case
Actual behavior
only the lowercase configured jms headers in OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_CAPTURE_HEADERS are captured in the span attributes
Javaagent or library instrumentation version
2.17.1
Environment
JDK:
OS:
Additional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding
+1orme too, to help us triage it. Learn more here.