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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionconversationId(org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> consumerRecords) destination(org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> consumerRecords) destinationKind(org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> consumerRecords) messagePayloadCompressedSize(org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> consumerRecords) messagePayloadSize(org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> consumerRecords) protocol(org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> consumerRecords) protocolVersion(org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> consumerRecords) system(org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> consumerRecords) booleantemporaryDestination(org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> consumerRecords) url(org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> consumerRecords) static KafkaReceiveAttributesGetterReturns the enum constant of this type with the specified name.static KafkaReceiveAttributesGetter[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
system
- Specified by:
systemin interfaceio.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:
destinationKindin interfaceio.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:
destinationin interfaceio.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:
temporaryDestinationin interfaceio.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:
protocolin interfaceio.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:
protocolVersionin interfaceio.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>, Void>
-
url
- Specified by:
urlin interfaceio.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:
conversationIdin interfaceio.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:
messagePayloadSizein interfaceio.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:
messagePayloadCompressedSizein interfaceio.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:
messageIdin interfaceio.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:
headerin interfaceio.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>, Void>
-