Replies: 1 comment
-
I will add something I found - maybe that is correct. The OTEL default producer interceptor will create a new trace-span when used and not keep the current one alive? So in order to get this fixed - one would either need a different producer interceptor or add that feature to the OTEL default kafka prodcuer interceptor? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a question and I am not sure I understand it generally wrong, or if I am configuring something wrong.
tl;dr - MirrorMaker2 seems to change message headers that contain the traceparent id. is there a way to keep it from changing it?
I have two Kafka Strimzi Clusters: dc1 and dc2
I have a producer (quay.io/strimzi-examples/java-kafka-producer:latest) in dc1, a mirrormaker between dc1 and dc2 and a consumer in dc2 (quay.io/strimzi-examples/java-kafka-consumer:latest)
Basically like this:
Producer -> Dc1 -> Mirrormaker -> DC2 -> Consumer
Now if I simply add Jaeger to the game and enable tracing on producer and consumer I can see the flow very beautifully
I however would like to include MirrorMaker into the tracing-flow, so I can see wether something goes wrong while replicating.
So I am enabling tracing like this:
If I now look at my traces I get not one complete end-to-end trace in Jaeger but only parts of the flow:
I get this part
Producer -> Dc1 -> Mirrormaker
and I get this part
Mirrormaker -> DC2 -> Consumer
This shows me nicely that MirrorMaker is doing something, but again it is not really helpful - since I would like to see the whole flow.
I am pretty sure that is due to the fact that MirrorMaker is not keeping the traceparent in the message header consistent, but changing it - one example:
( I am telling MirrorMaker2 to keep topic1 as is between DC1 and DC2 - same name, same config etc, so messages and headers in same offsets should be identical)
Is there a way to stop MirrorMaker2 from changing the header and just reuse it?
Or is this a different problem?
Beta Was this translation helpful? Give feedback.
All reactions