Skip to content

Issue in OTel agent with custom trace header propagator (TextMapPropagator) #12372

Answered by laurit
muthuIntern asked this question in Q&A
Discussion options

You must be logged in to vote

otel.propagators does not accept a propagator class name but a comma separated list of propagator names. TextMapPropagator is not an SPI so having it under META-INF/services will 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 the TextMapPropagator you'll have to provide a ConfigurablePropagatorProvider implementation and also the META-INF/services file for that.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@muthuIntern
Comment options

@laurit
Comment options

Answer selected by muthuIntern
@muthuIntern
Comment options

@laurit
Comment options

@muthuIntern
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants