Class KafkaTelemetryBuilder

java.lang.Object
io.micronaut.tracing.opentelemetry.instrument.kafka.KafkaTelemetryBuilder

@Internal public final class KafkaTelemetryBuilder extends Object
Builder class for KafkaTelemetry object.
Since:
5.0.0
  • Constructor Details

  • Method Details

    • addProducerAttributesExtractors

      public KafkaTelemetryBuilder addProducerAttributesExtractors(io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<io.opentelemetry.instrumentation.kafka.internal.KafkaProducerRequest,org.apache.kafka.clients.producer.RecordMetadata> extractor)
    • addConsumerAttributesExtractors

      public KafkaTelemetryBuilder addConsumerAttributesExtractors(io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<io.opentelemetry.instrumentation.kafka.internal.KafkaProcessRequest,Void> extractor)
    • build

      public KafkaTelemetry build()
    • setCaptureExperimentalSpanAttributes

      public void setCaptureExperimentalSpanAttributes(boolean captureExperimentalSpanAttributes)
    • setPropagationEnabled

      public void setPropagationEnabled(boolean propagationEnabled)