Enum KafkaConsumerRecordGetter

java.lang.Object
java.lang.Enum<KafkaConsumerRecordGetter>
io.opentelemetry.instrumentation.kafka.internal.KafkaConsumerRecordGetter
All Implemented Interfaces:
io.opentelemetry.context.propagation.TextMapGetter<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>, Serializable, Comparable<KafkaConsumerRecordGetter>, java.lang.constant.Constable

public enum KafkaConsumerRecordGetter extends Enum<KafkaConsumerRecordGetter> implements io.opentelemetry.context.propagation.TextMapGetter<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Enum Constant Details

  • Method Details

    • values

      public static KafkaConsumerRecordGetter[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static KafkaConsumerRecordGetter valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • keys

      public Iterable<String> keys(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> carrier)
      Specified by:
      keys in interface io.opentelemetry.context.propagation.TextMapGetter<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>
    • get

      @Nullable public String get(@Nullable org.apache.kafka.clients.consumer.ConsumerRecord<?,?> carrier, String key)
      Specified by:
      get in interface io.opentelemetry.context.propagation.TextMapGetter<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>