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 Details

    • KafkaTelemetryConsumerTracingInstrumentation

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