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