Module: KubeMQ::Telemetry::SemanticConventions
- Defined in:
- lib/kubemq/telemetry/semconv.rb
Overview
OpenTelemetry messaging semantic convention constants.
Provides stable attribute names and span-kind symbols aligned with the OpenTelemetry Semantic Conventions for Messaging (semconv v1.27+). Used by with_span and Interceptors::MetricsInterceptor to emit consistent telemetry data.
Attribute Keys collapse
- ATTR_MESSAGING_SYSTEM =
Identifies the messaging system (always MESSAGING_SYSTEM for KubeMQ).
'messaging.system'- ATTR_MESSAGING_OPERATION_NAME =
Name of the messaging operation (e.g.,
"send","receive","process"). 'messaging.operation.name'- ATTR_MESSAGING_DESTINATION_NAME =
Logical name of the destination channel or queue.
'messaging.destination.name'- ATTR_MESSAGING_MESSAGE_ID =
Unique identifier of the message being traced.
'messaging.message.id'- ATTR_MESSAGING_CLIENT_ID =
Identifier of the client that produced or consumed the message.
'messaging.client.id'
Span Kinds collapse
- SPAN_KIND_PRODUCER =
Span kind for message-producing operations (e.g., send, publish).
:producer- SPAN_KIND_CONSUMER =
Span kind for message-consuming operations (e.g., subscribe, poll).
:consumer- SPAN_KIND_CLIENT =
Span kind for synchronous client operations (e.g., ping, create_channel).
:client
Constant Summary collapse
- MESSAGING_SYSTEM =
Value for the
messaging.systemattribute when talking to KubeMQ. 'kubemq'