null context error while trying to produce message with kafkaTemplate #11728
-
When I activate OpenTelemetry traces on a spring boot service that uses kafka i got this log output whenever the method KafkaTemplate.send() is called (I tried with & without the TracingProducerInterceptor but i get the same result): I am using fololowing components: Please see logs & stacktrace attached. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
@PatrickChauveau would it be possible for you to provide a minimal application that reproduces this issue. I fail to see what circumstances could lead to this |
Beta Was this translation helpful? Give feedback.
-
Hi @PatrickChauveau , Do you have any ideas about that? I'm encountering that and don't know how to resolve it? |
Beta Was this translation helpful? Give feedback.
-
This error was a side effect of a double load of otel libraries. |
Beta Was this translation helpful? Give feedback.
-
f I must use agent and starter, how can I solve this problem? |
Beta Was this translation helpful? Give feedback.
This error was a side effect of a double load of otel libraries.
We had otel load at the start of the service with -javaagent option and we also had the import of
opentelemetry-spring-boot-starter
in our pom.xml. Removing the javaagent option solved this issue.