Lost Context propagation SpringKafka / kafka client - manual instrumentation #7033
-
Hello, I am using the instrumentation of Spring Kafka but I can't propagate the context in this flow : I would want to have 1 trace ID but I got 2. It seems I lost the context... I got traceparent in headers of the message until the consumer1 became the producer2, it seems to overwrite the existing traceparent. Have you any idea why it's happening ? OpenTelemetry is integrated in a lib used by our applications. Thanks for your time. Regards, Dimitri |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I fixed it, I am using SpringKafka, so I need to use this interceptor way to propagate context correctly : Regards, |
Beta Was this translation helpful? Give feedback.
I fixed it,
I was using the interceptor class for the listener, see below :
I am using SpringKafka, so I need to use this interceptor way to propagate context correctly :
Regards,