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.
  • Field Details

  • Constructor Details

  • 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

      public Iterator<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> iterator()
      Specified by:
      iterator in interface Iterable<K>
    • forEach

      public void forEach(Consumer<? super org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> action)
      Specified by:
      forEach in interface Iterable<K>