Package org.springframework.cloud.sleuth.instrument.kafka
package org.springframework.cloud.sleuth.instrument.kafka
-
ClassesClassDescriptionThis decorates a Kafka
Callbackand completes theSpan.Kind.PRODUCERspan created for the record whenonCompletion()is invoked (i.e.UsesReactorSleuthto create separate mono publisher for each element in flux, that will be injecting the tracing context toTracerandContextfor each element separately, giving downstream operators proper tracing context and span.Instruments Kafka related components.TracingKafkaConsumer<K,V> This decorates a KafkaConsumer.Deprecated.TracingKafkaProducer<K,V> This decorates a KafkaProducerand creates aSpan.Kind.PRODUCERspan for each record sent.This decorates a Reactor KafkaProducerFactoryto create decorated producers of typeTracingKafkaProducer.Getter extracting the values from theConsumerRecordheaders for Kafka based communication.Setter injecting the values onto theProducerRecordheaders for Kafka based communication.TracingKafkaReceiver<K,V> Decorator forKafkaReceiverthat delegates most of the work back to original consumer, but returns publishers decorated with tracing context per each element.
TracingKafkaReceiverthat leveragesReactiveKafkaTracingPropagator