You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/messaging/kafka.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,9 +43,9 @@ For Apache Kafka, the following additional attributes are defined:
43
43
|[`messaging.destination.partition.id`](/docs/attributes-registry/messaging.md)| string | String representation of the partition id the message (or batch) is sent to or received from. |`1`|`Recommended`||
44
44
|[`messaging.kafka.message.key`](/docs/attributes-registry/messaging.md)| string | Message 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're not unique. If the key is `null`, the attribute MUST NOT be set. [9]|`myKey`|`Recommended` If span describes operation on a single message. ||
45
45
|[`messaging.kafka.offset`](/docs/attributes-registry/messaging.md)| int | The offset of a record in the corresponding Kafka partition. |`42`|`Recommended` If span describes operation on a single message. ||
46
-
|[`messaging.message.body.size`](/docs/attributes-registry/messaging.md)| int | The size of the message body in bytes. [10]|`1439`|`Recommended` If span describes operation on a single message. ||
47
46
|[`messaging.message.id`](/docs/attributes-registry/messaging.md)| string | A value used by the messaging system as an identifier for the message, represented as a string. |`452a7c7c7c7048c2f887f61572b18fc2`|`Recommended` If span describes operation on a single message. ||
48
-
|[`server.port`](/docs/attributes-registry/server.md)| int | Server port number. [11]|`80`; `8080`; `443`|`Recommended`||
47
+
|[`server.port`](/docs/attributes-registry/server.md)| int | Server port number. [10]|`80`; `8080`; `443`|`Recommended`||
48
+
|[`messaging.message.body.size`](/docs/attributes-registry/messaging.md)| int | The size of the message body in bytes. Only applicable for spans describing single message operations. [11]|`1439`|`Opt-In`||
49
49
50
50
**[1]:** The `error.type` SHOULD be predictable, and SHOULD have low cardinality.
51
51
@@ -84,10 +84,10 @@ the broker doesn't have such notion, the destination name SHOULD uniquely identi
84
84
85
85
**[9]:** If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value.
86
86
87
-
**[10]:** This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed
88
-
body size should be used.
87
+
**[10]:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
89
88
90
-
**[11]:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
89
+
**[11]:** This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed
Copy file name to clipboardExpand all lines: docs/messaging/messaging-spans.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -346,13 +346,13 @@ Messaging system-specific attributes MUST be defined in the corresponding `messa
346
346
|[`server.address`](/docs/attributes-registry/server.md)| string | Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [14]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Conditionally Required` If available. ||
347
347
|[`messaging.client.id`](/docs/attributes-registry/messaging.md)| string | A unique identifier for the client that consumes or produces a message. |`client-5`; `myhost@8742@s8083jm`|`Recommended`||
348
348
|[`messaging.destination.partition.id`](/docs/attributes-registry/messaging.md)| string | The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name`. |`1`|`Recommended` When applicable. ||
349
-
|[`messaging.message.body.size`](/docs/attributes-registry/messaging.md)| int | The size of the message body in bytes. [15]|`1439`|`Recommended`||
350
349
|[`messaging.message.conversation_id`](/docs/attributes-registry/messaging.md)| string | The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". |`MyConversationId`|`Recommended`||
351
-
|[`messaging.message.envelope.size`](/docs/attributes-registry/messaging.md)| int | The size of the message body and metadata in bytes. [16]|`2738`|`Recommended`||
352
350
|[`messaging.message.id`](/docs/attributes-registry/messaging.md)| string | A value used by the messaging system as an identifier for the message, represented as a string. |`452a7c7c7c7048c2f887f61572b18fc2`|`Recommended` If span describes operation on a single message. ||
353
-
|[`network.peer.address`](/docs/attributes-registry/network.md)| string | Peer address of the messaging intermediary node where the operation was performed. [17]|`10.1.2.80`; `/tmp/my.sock`|`Recommended` If applicable for this messaging system. ||
351
+
|[`network.peer.address`](/docs/attributes-registry/network.md)| string | Peer address of the messaging intermediary node where the operation was performed. [15]|`10.1.2.80`; `/tmp/my.sock`|`Recommended` If applicable for this messaging system. ||
354
352
|[`network.peer.port`](/docs/attributes-registry/network.md)| int | Peer port of the messaging intermediary node where the operation was performed. |`65123`|`Recommended` if and only if `network.peer.address` is set. ||
355
-
|[`server.port`](/docs/attributes-registry/server.md)| int | Server port number. [18]|`80`; `8080`; `443`|`Recommended`||
353
+
|[`server.port`](/docs/attributes-registry/server.md)| int | Server port number. [16]|`80`; `8080`; `443`|`Recommended`||
354
+
|[`messaging.message.body.size`](/docs/attributes-registry/messaging.md)| int | The size of the message body in bytes. [17]|`1439`|`Opt-In`||
355
+
|[`messaging.message.envelope.size`](/docs/attributes-registry/messaging.md)| int | The size of the message body and metadata in bytes. [18]|`2738`|`Opt-In`||
356
356
357
357
**[1]:** The actual messaging system may differ from the one known by the client. For example, when using Kafka client libraries to communicate with Azure Event Hubs, the `messaging.system` is set to `kafka` based on the instrumentation's best knowledge.
358
358
@@ -401,17 +401,17 @@ the broker doesn't have such notion, the destination name SHOULD uniquely identi
401
401
402
402
**[14]:** Server domain name of the broker if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
403
403
404
-
**[15]:** This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed
405
-
body size should be used.
406
-
407
-
**[16]:** This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed
408
-
size should be used.
409
-
410
-
**[17]:** Semantic conventions for individual messaging systems SHOULD document whether `network.peer.*` attributes are applicable.
404
+
**[15]:** Semantic conventions for individual messaging systems SHOULD document whether `network.peer.*` attributes are applicable.
411
405
Network peer address and port are important when the application interacts with individual intermediary nodes directly,
412
406
If a messaging operation involved multiple network calls (for example retries), the address of the last contacted node SHOULD be used.
413
407
414
-
**[18]:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
408
+
**[16]:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
409
+
410
+
**[17]:** This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed
411
+
body size should be used.
412
+
413
+
**[18]:** This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed
Copy file name to clipboardExpand all lines: docs/messaging/rabbitmq.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,12 @@ In RabbitMQ, the destination is defined by an *exchange* and a *routing key*.
31
31
|[`messaging.rabbitmq.destination.routing_key`](/docs/attributes-registry/messaging.md)| string | RabbitMQ message routing key. |`myKey`|`Conditionally Required` If not empty. ||
32
32
|[`messaging.rabbitmq.message.delivery_tag`](/docs/attributes-registry/messaging.md)| int | RabbitMQ message delivery tag |`123`|`Conditionally Required` When available. ||
33
33
|[`server.address`](/docs/attributes-registry/server.md)| string | Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [5]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Conditionally Required` If available. ||
34
-
|[`messaging.message.body.size`](/docs/attributes-registry/messaging.md)| int | The size of the message body in bytes. [6]|`1439`|`Recommended`||
|[`messaging.message.id`](/docs/attributes-registry/messaging.md)| string | A value used by the messaging system as an identifier for the message, represented as a string. |`452a7c7c7c7048c2f887f61572b18fc2`|`Recommended` If span describes operation on a single message. ||
37
-
|[`network.peer.address`](/docs/attributes-registry/network.md)| string | Peer address of the network connection - IP address or Unix domain socket name. [7]|`10.1.2.80`; `/tmp/my.sock`|`Recommended`||
36
+
|[`network.peer.address`](/docs/attributes-registry/network.md)| string | Peer address of the network connection - IP address or Unix domain socket name. [6]|`10.1.2.80`; `/tmp/my.sock`|`Recommended`||
38
37
|[`network.peer.port`](/docs/attributes-registry/network.md)| int | Peer port number of the network connection. |`65123`|`Recommended`||
39
-
|[`server.port`](/docs/attributes-registry/server.md)| int | Server port number. [8]|`80`; `8080`; `443`|`Recommended`||
38
+
|[`server.port`](/docs/attributes-registry/server.md)| int | Server port number. [7]|`80`; `8080`; `443`|`Recommended`||
39
+
|[`messaging.message.body.size`](/docs/attributes-registry/messaging.md)| int | The size of the message body in bytes. [8]|`1439`|`Opt-In`||
40
40
41
41
**[1]:** The `error.type` SHOULD be predictable, and SHOULD have low cardinality.
42
42
@@ -67,12 +67,12 @@ the broker doesn't have such notion, the destination name SHOULD uniquely identi
67
67
68
68
**[5]:** Server domain name of the broker if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
69
69
70
-
**[6]:** This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed
71
-
body size should be used.
70
+
**[6]:** If an operation involved multiple network calls (for example retries), the address of the last contacted node SHOULD be used.
72
71
73
-
**[7]:**If an operation involved multiple network calls (for example retries), the address of the last contacted node SHOULD be used.
72
+
**[7]:**When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
74
73
75
-
**[8]:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
74
+
**[8]:** This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed
Copy file name to clipboardExpand all lines: docs/messaging/rocketmq.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,13 @@ Specific attributes for Apache RocketMQ are defined below.
35
35
|[`messaging.rocketmq.message.group`](/docs/attributes-registry/messaging.md)| string | It is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group. |`myMessageGroup`|`Conditionally Required` If the message type is FIFO. ||
36
36
|[`server.address`](/docs/attributes-registry/server.md)| string | Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [9]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Conditionally Required` If available. ||
37
37
|[`messaging.client.id`](/docs/attributes-registry/messaging.md)| string | A unique identifier for the client that consumes or produces a message. |`client-5`; `myhost@8742@s8083jm`|`Recommended`||
38
-
|[`messaging.message.body.size`](/docs/attributes-registry/messaging.md)| int | The size of the message body in bytes. [10]|`1439`|`Recommended`||
39
38
|[`messaging.message.id`](/docs/attributes-registry/messaging.md)| string | A value used by the messaging system as an identifier for the message, represented as a string. |`452a7c7c7c7048c2f887f61572b18fc2`|`Recommended` If span describes operation on a single message. ||
40
39
|[`messaging.rocketmq.consumption_model`](/docs/attributes-registry/messaging.md)| string | Model of message consumption. This only applies to consumer spans. |`clustering`; `broadcasting`|`Recommended`||
41
40
|[`messaging.rocketmq.message.keys`](/docs/attributes-registry/messaging.md)| string[]| Key(s) of message, another way to mark message besides message id. |`["keyA", "keyB"]`|`Recommended`||
42
41
|[`messaging.rocketmq.message.tag`](/docs/attributes-registry/messaging.md)| string | The secondary classifier of message besides topic. |`tagA`|`Recommended`||
43
42
|[`messaging.rocketmq.message.type`](/docs/attributes-registry/messaging.md)| string | Type of message. |`normal`; `fifo`; `delay`|`Recommended`||
44
-
|[`server.port`](/docs/attributes-registry/server.md)| int | Server port number. [11]|`80`; `8080`; `443`|`Recommended`||
43
+
|[`server.port`](/docs/attributes-registry/server.md)| int | Server port number. [10]|`80`; `8080`; `443`|`Recommended`||
44
+
|[`messaging.message.body.size`](/docs/attributes-registry/messaging.md)| int | The size of the message body in bytes. [11]|`1439`|`Opt-In`||
45
45
46
46
**[1]:** The `error.type` SHOULD be predictable, and SHOULD have low cardinality.
47
47
@@ -80,10 +80,10 @@ the broker doesn't have such notion, the destination name SHOULD uniquely identi
80
80
81
81
**[9]:** Server domain name of the broker if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
82
82
83
-
**[10]:** This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed
84
-
body size should be used.
83
+
**[10]:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
85
84
86
-
**[11]:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
85
+
**[11]:** This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed
0 commit comments