Class KafkaInstrumenterFactory
java.lang.Object
io.opentelemetry.instrumentation.kafkaclients.common.v0_11.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<KafkaReceiveRequest, Void> io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest, Void> io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest, Void> createConsumerProcessInstrumenter(Iterable<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<KafkaProcessRequest, Void>> extractors) io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaReceiveRequest, Void> io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaReceiveRequest, Void> createConsumerReceiveInstrumenter(Iterable<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<KafkaReceiveRequest, Void>> extractors) io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProducerRequest, org.apache.kafka.clients.producer.RecordMetadata> 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) setCapturedHeaders(Collection<String> capturedHeaders) setCaptureExperimentalSpanAttributes(boolean captureExperimentalSpanAttributes) setErrorCauseExtractor(io.opentelemetry.instrumentation.api.instrumenter.ErrorCauseExtractor errorCauseExtractor) setMessagingReceiveInstrumentationEnabled(boolean messagingReceiveInstrumentationEnabled)
-
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(Collection<String> capturedHeaders) -
setCaptureExperimentalSpanAttributes
@CanIgnoreReturnValue public KafkaInstrumenterFactory setCaptureExperimentalSpanAttributes(boolean captureExperimentalSpanAttributes) -
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()
-