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