Class KafkaInstrumenterFactory
java.lang.Object
io.opentelemetry.instrumentation.kafka.internal.KafkaInstrumenterFactory
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Constructor Summary
ConstructorsConstructorDescriptionKafkaInstrumenterFactory(io.opentelemetry.api.OpenTelemetry openTelemetry, String instrumentationName) -
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.instrumentation.api.instrumenter.Instrumenter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>, Void> io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>, Void> createConsumerOperationInstrumenter(io.opentelemetry.instrumentation.api.instrumenter.messaging.MessageOperation operation, Iterable<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.apache.kafka.clients.consumer.ConsumerRecord<?, ?>, Void>> extractors) io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>, Void> io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>, Void> io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<org.apache.kafka.clients.producer.ProducerRecord<?,?>, Void> io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<org.apache.kafka.clients.producer.ProducerRecord<?,?>, Void> createProducerInstrumenter(Iterable<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.apache.kafka.clients.producer.ProducerRecord<?, ?>, Void>> extractors) setCapturedHeaders(List<String> capturedHeaders) setCaptureExperimentalSpanAttributes(boolean captureExperimentalSpanAttributes) setErrorCauseExtractor(io.opentelemetry.instrumentation.api.instrumenter.ErrorCauseExtractor errorCauseExtractor) setMessagingReceiveInstrumentationEnabled(boolean messagingReceiveInstrumentationEnabled) setPropagationEnabled(boolean propagationEnabled) Deprecated.if you have a need for this configuration option please open an issue in the opentelemetry-java-instrumentation repository.
-
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<org.apache.kafka.clients.producer.ProducerRecord<?,?>, createProducerInstrumenter()Void> -
createProducerInstrumenter
public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<org.apache.kafka.clients.producer.ProducerRecord<?,?>, createProducerInstrumenterVoid> (Iterable<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.apache.kafka.clients.producer.ProducerRecord<?, ?>, Void>> extractors) -
createConsumerReceiveInstrumenter
public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>, createConsumerReceiveInstrumenter()Void> -
createConsumerProcessInstrumenter
public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>, createConsumerProcessInstrumenter()Void> -
createConsumerOperationInstrumenter
public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>, createConsumerOperationInstrumenterVoid> (io.opentelemetry.instrumentation.api.instrumenter.messaging.MessageOperation operation, Iterable<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.apache.kafka.clients.consumer.ConsumerRecord<?, ?>, Void>> extractors) -
createBatchProcessInstrumenter
public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>, createBatchProcessInstrumenter()Void>
-