Skip to content
semconv.com
↑↓ move↵ openUse with your agent →

Messaging

as of v1.45.0

Queues, topics and brokers — producing, receiving, processing and settling a message.

messaging 49rocketmq 8cloudevents 5kafka 4message 4rabbitmq 2

Attributes
72
Metrics
10
Signals
13
Stable
0
Deprecated
37

Signals

What this domain emits, and the attributes each one carries, most strongly required first. An attribute marked * is required on that signal; * is conditionally required.

Spans 8

Events 5

Metrics 10

  • messaging.client.consumed.messages
    Developmentcounter · {message}Number of messages that were delivered to the application.
  • messaging.client.operation.duration
    Developmenthistogram · sDuration of messaging operation initiated by a producer or consumer client.
  • messaging.client.published.messages
    Deprecatedcounter · {message}Deprecated. Use messaging.client.sent.messages instead.
  • messaging.client.sent.messages
    Developmentcounter · {message}Number of messages producer attempted to send to the broker.
  • messaging.process.duration
    Developmenthistogram · sDuration of processing operation.
  • messaging.process.messages
    Deprecatedcounter · {message}Deprecated. Use messaging.client.consumed.messages instead.
  • messaging.publish.duration
    Deprecatedhistogram · sDeprecated. Use messaging.client.operation.duration instead.
  • messaging.publish.messages
    Deprecatedcounter · {message}Deprecated. Use messaging.client.sent.messages instead.
  • messaging.receive.duration
    Deprecatedhistogram · sDeprecated. Use messaging.client.operation.duration instead.
  • messaging.receive.messages
    Deprecatedcounter · {message}Deprecated. Use messaging.client.consumed.messages instead.

Specification

  • Spansare bound by the trace specification — 312 requirements across 8 documents, 176 of them MUST or SHALL.
  • Metricsare bound by the metrics specification — 569 requirements across 8 documents, 296 of them MUST or SHALL.
  • Eventsare bound by the logs specification — 163 requirements across 5 documents, 84 of them MUST or SHALL.

The specification prose never names this domain. That is not an omission: the specification defines signals, not subject matter — what binds messaging telemetry is the general rules above, and the conventions themselves carry the rest.

On the wire, this lands in trace/v1/trace, metrics/v1/metrics, logs/v1/logs. Field-by-field definitions are under OTLP.

Attributes 72

messaging49 attributes

rocketmq8 attributes

cloudevents5 attributes

kafka4 attributes

  • kafka.cluster.id
    DevelopmentThe Kafka cluster ID, obtained from the broker metadata exposed through the Kafka client (or AdminClient) API.
  • kafka.message.key
    DevelopmentMessage keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from messaging.message.id in that they
  • kafka.message.tombstone
    DevelopmentA boolean that is true if the message is a tombstone.
  • kafka.offset
    DevelopmentThe offset of a record in the corresponding Kafka partition.

message4 attributes

rabbitmq2 attributes

Recent changes

Breaking and notable changes to this domain across the last 6 semantic-conventions releases.

14 more in the full release history

Topics are this site's grouping of upstream namespaces, not a structure the OpenTelemetry project publishes. JSON · All domains