Support tracing via auto-instrumentation with Kafka broker #9344
Replies: 3 comments 4 replies
-
Hey @manuelnucci , Before diving into any extra configuration/software components: are you instrumenting both ends (producer & consumer)? What kind of Kafka library are you using? E.g. plain kafka-clients, spring-kafka etc. |
Beta Was this translation helpful? Give feedback.
-
Hi @mateuszrzeszutek. Let me provide some details about our current setup:
Let me know if you need anything else! |
Beta Was this translation helpful? Give feedback.
-
No span on the consumer side at all. I'll check what specific configuration this library needs in order to work with OTEL. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I've been trying to find a way to enable tracing in our microservice architecture and leverage OTEL for that. So far we haven't been able to generate the correct traces of two apps communicated between each other through a Kafka broker.
After reading this article it seems we could leverage the auto-instrumentation approach in our applications and add a specific environment variable in the consumer application to decode the specific headers that should come with the event consumed.
I was able to find that variable here but the current behaviour is that only the trace from the producer app is generated.
I want to know if this behaviour is currently supported, and if there's some additional configuration that we must set for this to work.
Thanks!
P.S.: I've heard about the Strimzi Kafka Bridge as well as the Micrometer library that could solve our problem, but we're interested in the simplest approach possible.
Beta Was this translation helpful? Give feedback.
All reactions