Issue in OTel agent with custom trace header propagator (TextMapPropagator) #12372
-
|
Hi All, I am trying to include custom trace header propagation for OTel agent to use custom headers.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Agent can be customized with extensions, see https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/examples/extension. Try passing the jar that contains your propagator to the agent with |
Beta Was this translation helpful? Give feedback.

otel.propagatorsdoes not accept a propagator class name but a comma separated list of propagator names.TextMapPropagatoris not an SPI so having it underMETA-INF/serviceswill not work. Please see the demo propagator in the sample extension https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/examples/extension/src/main/java/com/example/javaagent/DemoPropagatorProvider.java Besides theTextMapPropagatoryou'll have to provide aConfigurablePropagatorProviderimplementation and also theMETA-INF/servicesfile for that.