Class KafkaInstrumenterFactory

java.lang.Object
io.opentelemetry.instrumentation.kafka.internal.KafkaInstrumenterFactory

public final class KafkaInstrumenterFactory extends Object
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Constructor Details

    • KafkaInstrumenterFactory

      public KafkaInstrumenterFactory(io.opentelemetry.api.OpenTelemetry openTelemetry, String instrumentationName)
  • Method Details

    • setErrorCauseExtractor

      @CanIgnoreReturnValue public KafkaInstrumenterFactory setErrorCauseExtractor(io.opentelemetry.instrumentation.api.instrumenter.ErrorCauseExtractor errorCauseExtractor)
    • setCapturedHeaders

      @CanIgnoreReturnValue public KafkaInstrumenterFactory setCapturedHeaders(List<String> capturedHeaders)
    • setCaptureExperimentalSpanAttributes

      @CanIgnoreReturnValue public KafkaInstrumenterFactory setCaptureExperimentalSpanAttributes(boolean captureExperimentalSpanAttributes)
    • setPropagationEnabled

      @Deprecated @CanIgnoreReturnValue public KafkaInstrumenterFactory setPropagationEnabled(boolean propagationEnabled)
      Deprecated.
      if you have a need for this configuration option please open an issue in the opentelemetry-java-instrumentation repository.
    • setMessagingReceiveInstrumentationEnabled

      @CanIgnoreReturnValue public KafkaInstrumenterFactory setMessagingReceiveInstrumentationEnabled(boolean messagingReceiveInstrumentationEnabled)
    • createProducerInstrumenter

      public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProducerRequest,org.apache.kafka.clients.producer.RecordMetadata> createProducerInstrumenter()
    • createProducerInstrumenter

      public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProducerRequest,org.apache.kafka.clients.producer.RecordMetadata> createProducerInstrumenter(Iterable<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<KafkaProducerRequest,org.apache.kafka.clients.producer.RecordMetadata>> extractors)
    • createConsumerReceiveInstrumenter

      public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaReceiveRequest,Void> createConsumerReceiveInstrumenter()
    • createConsumerReceiveInstrumenter

      public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaReceiveRequest,Void> createConsumerReceiveInstrumenter(Iterable<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<KafkaReceiveRequest,Void>> extractors)
    • createConsumerProcessInstrumenter

      public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest,Void> createConsumerProcessInstrumenter()
    • createConsumerProcessInstrumenter

      public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest,Void> createConsumerProcessInstrumenter(Iterable<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<KafkaProcessRequest,Void>> extractors)
    • createBatchProcessInstrumenter

      public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaReceiveRequest,Void> createBatchProcessInstrumenter()