Skip to content

Commit eb74955

Browse files
authored
Add messaging.destination.partition.id to metric attributes (open-telemetry#814)
1 parent f1be151 commit eb74955

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.chloggen/814.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
change_type: enhancement
2+
component: messaging
3+
note: Adds `messaging.destination.partition.id`` to the messaging attributes
4+
issues: [ 814 ]

docs/messaging/messaging-metrics.md

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ All messaging metrics share the same set of attributes:
3737
| [`messaging.destination.name`](../attributes-registry/messaging.md) | string | The message destination name [3] | `MyQueue`; `MyTopic` | `Conditionally Required` [4] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
3838
| [`messaging.destination.template`](../attributes-registry/messaging.md) | string | Low cardinality representation of the messaging destination name [5] | `/customers/{customerId}` | `Conditionally Required` if available. | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
3939
| [`server.address`](../attributes-registry/server.md) | string | Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [6] | `example.com`; `10.1.2.80`; `/tmp/my.sock` | `Conditionally Required` If available. | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
40+
| [`messaging.destination.partition.id`](../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` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
4041
| [`server.port`](../attributes-registry/server.md) | int | Server port number. [7] | `80`; `8080`; `443` | `Recommended` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
4142

4243
**[1]:** The `error.type` SHOULD be predictable and SHOULD have low cardinality.

model/messaging-common.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ groups:
66
attributes:
77
- ref: messaging.system
88
requirement_level: required
9+
- ref: messaging.destination.partition.id
910
- ref: error.type
1011
examples: ['amqp:decode-error', 'KAFKA_STORAGE_ERROR', 'channel-error']
1112
requirement_level:

0 commit comments

Comments
 (0)