Class OpenTelemetryConsumerInterceptor<K,V>
java.lang.Object
io.opentelemetry.instrumentation.kafkaclients.v2_6.internal.OpenTelemetryConsumerInterceptor<K,V>
- All Implemented Interfaces:
AutoCloseable,org.apache.kafka.clients.consumer.ConsumerInterceptor<K,,V> org.apache.kafka.common.Configurable
public class OpenTelemetryConsumerInterceptor<K,V>
extends Object
implements org.apache.kafka.clients.consumer.ConsumerInterceptor<K,V>
A ConsumerInterceptor that adds OpenTelemetry instrumentation.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Details
-
CONFIG_KEY_KAFKA_CONSUMER_TELEMETRY_SUPPLIER
- See Also:
-
-
Constructor Details
-
OpenTelemetryConsumerInterceptor
public OpenTelemetryConsumerInterceptor()
-
-
Method Details
-
onConsume
-
onCommit
public void onCommit(Map<org.apache.kafka.common.TopicPartition, org.apache.kafka.clients.consumer.OffsetAndMetadata> offsets) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.apache.kafka.clients.consumer.ConsumerInterceptor<K,V>
-
configure
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable
-