Class KafkaInstrumenterFactory

java.lang.Object
io.opentelemetry.instrumentation.kafkaclients.common.v0_11.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)
    • setHeaders

      @CanIgnoreReturnValue public KafkaInstrumenterFactory setHeaders(io.opentelemetry.instrumentation.api.config.IncludeExclude headers)
    • setCaptureExperimentalSpanAttributes

      @CanIgnoreReturnValue public KafkaInstrumenterFactory setCaptureExperimentalSpanAttributes(boolean captureExperimentalSpanAttributes)
    • setMessagingReceiveTelemetryEnabled

      @CanIgnoreReturnValue public KafkaInstrumenterFactory setMessagingReceiveTelemetryEnabled(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)
    • createProducerInterceptorInstrumenter

      public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProducerRequest, org.apache.kafka.clients.producer.RecordMetadata> createProducerInterceptorInstrumenter(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)
    • createConsumerReceiveInterceptorInstrumenter

      public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaReceiveRequest, Void> createConsumerReceiveInterceptorInstrumenter(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()