java.lang.Object
io.opentelemetry.instrumentation.kafkaclients.common.v0_11.internal.KafkaConsumerContextUtil

public final class KafkaConsumerContextUtil extends Object
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    copy(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> from, org.apache.kafka.clients.consumer.ConsumerRecord<?,?> to)
     
    create(io.opentelemetry.context.Context context, String consumerGroup, String clientId)
     
    create(io.opentelemetry.context.Context context, org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
     
    get(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> records)
     
    get(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> records)
     
    static void
    set(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record, io.opentelemetry.context.Context context, String consumerGroup, String clientId)
     
    static void
    set(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record, io.opentelemetry.context.Context context, org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
     
    static void
    set(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record, KafkaConsumerContext consumerContext)
     
    static void
    set(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> records, io.opentelemetry.context.Context context, String consumerGroup, String clientId)
     
    static void
    set(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> records, io.opentelemetry.context.Context context, org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • get

      public static KafkaConsumerContext get(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> records)
    • get

      public static KafkaConsumerContext get(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> records)
    • create

      public static KafkaConsumerContext create(io.opentelemetry.context.Context context, org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
    • create

      public static KafkaConsumerContext create(io.opentelemetry.context.Context context, String consumerGroup, String clientId)
    • set

      public static void set(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record, io.opentelemetry.context.Context context, org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
    • set

      public static void set(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record, KafkaConsumerContext consumerContext)
    • set

      public static void set(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record, io.opentelemetry.context.Context context, String consumerGroup, String clientId)
    • set

      public static void set(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> records, io.opentelemetry.context.Context context, org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
    • set

      public static void set(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> records, io.opentelemetry.context.Context context, String consumerGroup, String clientId)
    • copy

      public static void copy(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> from, org.apache.kafka.clients.consumer.ConsumerRecord<?,?> to)