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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final KafkaConsumerContextprotected final io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest, Void> protected final BooleanSupplier -
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 TypeMethodDescriptionvoiditerator()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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
spliterator
-
Field Details
-
instrumenter
protected final io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest, Void> instrumenter -
wrappingEnabled
-
consumerContext
-
-
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
-
forEach
-