Semantic Conventions for Messaging Systems
Status: Experimental
This document defines semantic conventions for messaging systems spans, metrics and logs.
[!Warning]
Existing messaging instrumentations that are using v1.24.0 of this document (or prior):
- SHOULD NOT change the version of the messaging conventions that they emit by default until the messaging semantic conventions are marked stable. Conventions include, but are not limited to, attributes, metric and span names, span kind and unit of measure.
- SHOULD introduce an environment variable
OTEL_SEMCONV_STABILITY_OPT_IN
in the existing major version which is a comma-separated list of values. The list of values includes:
messaging
- emit the new, stable messaging conventions, and stop emitting the old experimental messaging conventions that the instrumentation emitted previously.messaging/dup
- emit both the old and the stable messaging conventions, allowing for a seamless transition.- The default behavior (in the absence of one of these values) is to continue emitting whatever version of the old experimental messaging conventions the instrumentation was emitting previously.
- Note:
messaging/dup
has higher precedence thanmessaging
in case both values are present- SHOULD maintain (security patching at a minimum) the existing major version for at least six months after it starts emitting both sets of conventions.
- SHOULD drop the environment variable in the next major version.
- SHOULD emit the new, stable values for span name, span kind and similar “single” valued concepts when
messaging/dup
is present in the list.
Semantic conventions for messaging systems are defined for the following signals:
- Messaging Spans: Semantic Conventions for messaging spans.
- Messaging Metrics: Semantic Conventions for messaging metrics.
Technology specific semantic conventions are defined for the following messaging systems:
- Kafka: Semantic Conventions for Apache Kafka.
- RabbitMQ: Semantic Conventions for RabbitMQ.
- RocketMQ: Semantic Conventions for Apache RocketMQ.
- Google Cloud Pub/Sub: Semantic Conventions for Google Cloud Pub/Sub.
- Azure Service Bus: Semantic Conventions for Azure Service Bus.
- Azure Event Hubs: Semantic Conventions for Azure Event Hubs.
Feedback
Was this page helpful?
Thank you. Your feedback is appreciated!
Please let us know how we can improve this page. Your feedback is appreciated!