본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Semantic conventions for messaging systems

원문 보기 위키 갱신

Status: Development

출처: 문서

본문

This document defines semantic conventions for messaging systems spans, metrics and logs.

Important

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 as a comma-separated list of category-specific values (e.g., http, databases, messaging). 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 than messaging 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.
  • Messaging Exceptions: Semantic Conventions for messaging exceptions.

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.
  • SNS: Semantic Conventions for Amazon SNS.
  • SQS: Semantic Conventions for Amazon SQS.
  • 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.
Semantic conventions for AWS SNS
Semantic conventions for AWS SQS
Semantic conventions for Azure messaging systems
Semantic conventions for messaging exceptions
Semantic conventions for Google Cloud Pub/Sub
Semantic conventions for Kafka
Semantic conventions for messaging client metrics
Semantic conventions for RabbitMQ
Semantic conventions for RocketMQ
Semantic conventions for messaging spans