Hi! I am trying to set up tracing for my application. We are used to receive traces from upstream with Jaeger format header ( uber-trace-id )
Currently there is support for W3C, B3 and B3_MULTI propagation types, jaeger is little bit deprecated, but still used format.
Actually, it seems that there is no simple solution to add custom propagator to actuator configuration. All types are hardcoded (here i guess) and there is no option to extend them with custom type (since mapper heresupport only previously noticed types)
Simple solution for my issue is just add JAEGER format support in default configuration. Customisation support seems to be more complex.
Comment From: wilkinsona
You should be able to define your own ContextPropagators bean to take control of how propagation is performed. Have you tried that?
Comment From: artsidorenko
Yeah, it seems to be a solution for my issue. I added
@AutoConfiguration
@AutoConfigureBefore(name = ["org.springframework.boot.actuate.autoconfigure.tracing.OpenTelemetryAutoConfiguration"])
class JaegerPropagationAutoConfiguration {
@Bean
fun jaegerPropagator(): TextMapPropagator = JaegerPropagator.getInstance()
}
and everything works fine now. Didn't mention that there is option to register custom propagators Thank you for quick reply!