Class TracingIterable<K,V>
java.lang.Object
io.opentelemetry.instrumentation.kafkaclients.common.v0_11.internal.TracingIterable<K,V>
- All Implemented Interfaces:
Iterable<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>
- Direct Known Subclasses:
TracingList
public class TracingIterable<K,V>
extends Object
implements Iterable<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTracingIterable(Iterable<org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> delegate, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest, Void> instrumenter, BooleanSupplier wrappingEnabled, KafkaConsumerContext consumerContext) -
Method Summary
Modifier and TypeMethodDescriptioniterator()static <K,V> Iterable <org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> wrap(Iterable<org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> delegate, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest, Void> instrumenter, BooleanSupplier wrappingEnabled, KafkaConsumerContext consumerContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TracingIterable
protected TracingIterable(Iterable<org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> delegate, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest, Void> instrumenter, BooleanSupplier wrappingEnabled, KafkaConsumerContext consumerContext)
-
-
Method Details
-
wrap
public static <K,V> Iterable<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> wrap(Iterable<org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> delegate, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest, Void> instrumenter, BooleanSupplier wrappingEnabled, KafkaConsumerContext consumerContext) -
iterator
-