Class TracingIterator<K,V>
java.lang.Object
io.opentelemetry.instrumentation.kafkaclients.common.v0_11.internal.TracingIterator<K,V>
- All Implemented Interfaces:
Iterator<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>
-
Method Summary
Modifier and TypeMethodDescriptionvoidforEachRemaining(Consumer<? super org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> action) booleanhasNext()next()voidremove()static <K,V> Iterator <org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> wrap(Iterator<org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> delegateIterator, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest, Void> instrumenter, BooleanSupplier wrappingEnabled, KafkaConsumerContext consumerContext)
-
Method Details
-
wrap
public static <K,V> Iterator<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> wrap(Iterator<org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> delegateIterator, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest, Void> instrumenter, BooleanSupplier wrappingEnabled, KafkaConsumerContext consumerContext) -
hasNext
-
next
-
forEachRemaining
-
remove
-