Enum KafkaReceiveAttributesGetter

java.lang.Object
java.lang.Enum<KafkaReceiveAttributesGetter>
io.opentelemetry.instrumentation.kafka.internal.KafkaReceiveAttributesGetter
All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>,Void>, Serializable, Comparable<KafkaReceiveAttributesGetter>, java.lang.constant.Constable

public enum KafkaReceiveAttributesGetter extends Enum<KafkaReceiveAttributesGetter> implements io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>,Void>
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 KafkaReceiveAttributesGetter[] 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 KafkaReceiveAttributesGetter 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
    • system

      public String system(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> consumerRecords)
      Specified by:
      system in interface io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>,Void>
    • destinationKind

      public String destinationKind(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> consumerRecords)
      Specified by:
      destinationKind in interface io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>,Void>
    • destination

      @Nullable public String destination(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> consumerRecords)
      Specified by:
      destination in interface io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>,Void>
    • temporaryDestination

      public boolean temporaryDestination(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> consumerRecords)
      Specified by:
      temporaryDestination in interface io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>,Void>
    • protocol

      @Nullable public String protocol(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> consumerRecords)
      Specified by:
      protocol in interface io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>,Void>
    • protocolVersion

      @Nullable public String protocolVersion(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> consumerRecords)
      Specified by:
      protocolVersion in interface io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>,Void>
    • url

      @Nullable public String url(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> consumerRecords)
      Specified by:
      url in interface io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>,Void>
    • conversationId

      @Nullable public String conversationId(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> consumerRecords)
      Specified by:
      conversationId in interface io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>,Void>
    • messagePayloadSize

      @Nullable public Long messagePayloadSize(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> consumerRecords)
      Specified by:
      messagePayloadSize in interface io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>,Void>
    • messagePayloadCompressedSize

      @Nullable public Long messagePayloadCompressedSize(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> consumerRecords)
      Specified by:
      messagePayloadCompressedSize in interface io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>,Void>
    • messageId

      @Nullable public String messageId(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> consumerRecords, @Nullable Void unused)
      Specified by:
      messageId in interface io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>,Void>
    • header

      public List<String> header(org.apache.kafka.clients.consumer.ConsumerRecords<?,?> records, String name)
      Specified by:
      header in interface io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>,Void>