Class InstrumentedBatchInterceptor<K,V>
java.lang.Object
io.opentelemetry.javaagent.instrumentation.spring.kafka.InstrumentedBatchInterceptor<K,V>
- All Implemented Interfaces:
org.springframework.kafka.listener.BatchInterceptor<K,V>
public final class InstrumentedBatchInterceptor<K,V>
extends Object
implements org.springframework.kafka.listener.BatchInterceptor<K,V>
-
Constructor Summary
ConstructorsConstructorDescriptionInstrumentedBatchInterceptor(io.opentelemetry.instrumentation.api.field.VirtualField<org.apache.kafka.clients.consumer.ConsumerRecords<K, V>, io.opentelemetry.context.Context> receiveContextField, io.opentelemetry.instrumentation.api.field.VirtualField<org.apache.kafka.clients.consumer.ConsumerRecords<K, V>, State<org.apache.kafka.clients.consumer.ConsumerRecords<K, V>>> stateField, org.springframework.kafka.listener.BatchInterceptor<K, V> decorated) -
Method Summary
Modifier and TypeMethodDescriptionvoidfailure(org.apache.kafka.clients.consumer.ConsumerRecords<K, V> records, Exception exception, org.apache.kafka.clients.consumer.Consumer<K, V> consumer) intercept(org.apache.kafka.clients.consumer.ConsumerRecords<K, V> records, org.apache.kafka.clients.consumer.Consumer<K, V> consumer) voidsuccess(org.apache.kafka.clients.consumer.ConsumerRecords<K, V> records, org.apache.kafka.clients.consumer.Consumer<K, V> consumer)
-
Constructor Details
-
InstrumentedBatchInterceptor
public InstrumentedBatchInterceptor(io.opentelemetry.instrumentation.api.field.VirtualField<org.apache.kafka.clients.consumer.ConsumerRecords<K, V>, io.opentelemetry.context.Context> receiveContextField, io.opentelemetry.instrumentation.api.field.VirtualField<org.apache.kafka.clients.consumer.ConsumerRecords<K, V>, State<org.apache.kafka.clients.consumer.ConsumerRecords<K, V>>> stateField, @Nullable org.springframework.kafka.listener.BatchInterceptor<K, V> decorated)
-
-
Method Details
-
intercept
-
success
-
failure
-