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 Details

    • KafkaTelemetryProducerTracingInstrumentation

      public KafkaTelemetryProducerTracingInstrumentation(KafkaTelemetry kafkaTelemetry)
      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 interface io.micronaut.context.event.BeanCreatedEventListener<org.apache.kafka.clients.producer.Producer<?,?>>