@Singleton
@Requires(beans=io.opentracing.Tracer.class) @Requires(classes=io.opentracing.contrib.kafka.TracingKafkaProducer.class)
public class KafkaProducerTracingInstrumentation
extends java.lang.Object
implements io.micronaut.context.event.BeanCreatedEventListener<org.apache.kafka.clients.producer.Producer<?,?>>
Modifier | Constructor and Description |
---|---|
protected |
KafkaProducerTracingInstrumentation(javax.inject.Provider<io.opentracing.Tracer> tracerProvider)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.kafka.clients.producer.Producer<?,?> |
onCreated(io.micronaut.context.event.BeanCreatedEvent<org.apache.kafka.clients.producer.Producer<?,?>> event) |
protected KafkaProducerTracingInstrumentation(javax.inject.Provider<io.opentracing.Tracer> tracerProvider)
tracerProvider
- The tracer providerpublic org.apache.kafka.clients.producer.Producer<?,?> onCreated(io.micronaut.context.event.BeanCreatedEvent<org.apache.kafka.clients.producer.Producer<?,?>> event)
onCreated
in interface io.micronaut.context.event.BeanCreatedEventListener<org.apache.kafka.clients.producer.Producer<?,?>>