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.ClusterResourceListener, org.apache.kafka.common.Configurable
public class OpenTelemetryConsumerInterceptor<K,V>
extends Object
implements org.apache.kafka.clients.consumer.ConsumerInterceptor<K,V>, org.apache.kafka.common.ClusterResourceListener
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CONFIG_KEY_KAFKA_CONSUMER_TELEMETRY_SUPPLIER
- See Also:
-
-
Constructor Details
-
OpenTelemetryConsumerInterceptor
public OpenTelemetryConsumerInterceptor()
-
-
Method Details
-
onConsume
-
onCommit
-
onUpdate
public void onUpdate(org.apache.kafka.common.ClusterResource clusterResource) - Specified by:
onUpdatein interfaceorg.apache.kafka.common.ClusterResourceListener
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.apache.kafka.clients.consumer.ConsumerInterceptor<K,V>
-
configure
-