Class KafkaTelemetryConsumerTracingInstrumentation
java.lang.Object
io.micronaut.tracing.opentelemetry.instrument.kafka.KafkaTelemetryConsumerTracingInstrumentation
- All Implemented Interfaces:
io.micronaut.context.event.BeanCreatedEventListener<org.apache.kafka.clients.consumer.Consumer<?,
,?>> EventListener
@Requires(property="otel.instrumentation.kafka.wrapper",
notEquals="false")
@Singleton
public class KafkaTelemetryConsumerTracingInstrumentation
extends Object
implements io.micronaut.context.event.BeanCreatedEventListener<org.apache.kafka.clients.consumer.Consumer<?,?>>
Kafka consumer tracing instrumentation using OpenTelemetry.
- Since:
- 4.5.0
-
Constructor Summary
ConstructorDescriptionKafkaTelemetryConsumerTracingInstrumentation
(KafkaTelemetry kafkaTelemetry) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.kafka.clients.consumer.Consumer<?,
?> onCreated
(io.micronaut.context.event.BeanCreatedEvent<org.apache.kafka.clients.consumer.Consumer<?, ?>> event)
-
Constructor Details
-
KafkaTelemetryConsumerTracingInstrumentation
Default constructor.- Parameters:
kafkaTelemetry
- The kafka telemetry
-
-
Method Details
-
onCreated
public org.apache.kafka.clients.consumer.Consumer<?,?> onCreated(io.micronaut.context.event.BeanCreatedEvent<org.apache.kafka.clients.consumer.Consumer<?, ?>> event) - Specified by:
onCreated
in interfaceio.micronaut.context.event.BeanCreatedEventListener<org.apache.kafka.clients.consumer.Consumer<?,
?>>
-