opentracing-contrib / java-kafka-client

OpenTracing Instrumentation for Apache Kafka Client
Apache License 2.0
125 stars 64 forks source link

Is there any solution for kafka version without header #56

Closed caorui31 closed 5 years ago

caorui31 commented 5 years ago

Hi guys,

In my project, I use kafka with version 0.10 So, Is there any solution for this, I need to carry trace information when passing data by kafka.

malafeev commented 5 years ago

Kafka versions before 1.0.0 doesn't support headers therefore passing span context from producer to consumer is complicated. I tried to fix it in old versions of this lib e.g. 0.0.3 You can try to use it, but it was too tricky to implement. And OpenTracing API those days was different...

caorui31 commented 5 years ago

Kafka versions before 1.0.0 doesn't support headers therefore passing span context from producer to consumer is complicated. I tried to fix it in old versions of this lib e.g. 0.0.3 You can try to use it, but it was too tricky to implement. And OpenTracing API those days was different...

thanks. I will have a try, because of in my project . kafka version only support below 0.11