/** Starts and propagates {@link Span.Kind#PRODUCER} span for each message sent. */ public <K, V> Producer<K, V> producer(Producer<K, V> producer) { return new TracingProducer<>(producer, this); }
/** * Send with a callback is always called for KafkaProducer. We do the same here to enable * tracing. */ @Override public Future<RecordMetadata> send(ProducerRecord<K, V> record) { return this.send(record, null); }
/** * Send with a callback is always called for KafkaProducer. We do the same here to enable * tracing. */ @Override public Future<RecordMetadata> send(ProducerRecord<K, V> record) { return this.send(record, null); }
/** Starts and propagates {@link Span.Kind#PRODUCER} span for each message sent. */ public <K, V> Producer<K, V> producer(Producer<K, V> producer) { return new TracingProducer<>(producer, this); }