opentracing-contrib / java-kafka-client

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

Kafka Streams tracing #11

Closed malafeev closed 7 years ago

malafeev commented 7 years ago

I cannot find a way to instrument kafka streams.

nachomdo commented 7 years ago

I think with Kafka Streams you can provide a KafkaClientSupplier so you can return your TrackingKafkaConsumer and TrackingKafkaProducer instead of the original one. Another option that I think could be useful is to use ConsumerInterceptor and ProducerInterceptor, that way you can add or remove the tracing at the KafkaStreams configuration level.

malafeev commented 7 years ago

thank you @nachomdo I will try

malafeev commented 7 years ago

but looks like there is no way to intercept processing of records.