Rename `messaging.kafka.message.offset` to `messaging.kafka.offset` (#1245)
Co-authored-by: Liudmila Molkova <limolkova@microsoft.com>
This commit is contained in:
parent
17decc3f22
commit
c06b31850b
|
|
@ -0,0 +1,7 @@
|
|||
change_type: breaking
|
||||
|
||||
component: messaging
|
||||
|
||||
note: Rename `messaging.kafka.message.offset` to `messaging.kafka.offset`
|
||||
|
||||
issues: [1156]
|
||||
|
|
@ -117,8 +117,8 @@ This group describes attributes specific to Apache Kafka.
|
|||
| Attribute | Type | Description | Examples | Stability |
|
||||
| ----------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------- |
|
||||
| `messaging.kafka.message.key` | 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. [11] | `myKey` |  |
|
||||
| `messaging.kafka.message.offset` | int | The offset of a record in the corresponding Kafka partition. | `42` |  |
|
||||
| `messaging.kafka.message.tombstone` | boolean | A boolean that is true if the message is a tombstone. | |  |
|
||||
| `messaging.kafka.offset` | int | The offset of a record in the corresponding Kafka partition. | `42` |  |
|
||||
|
||||
**[11]:** 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.
|
||||
|
||||
|
|
@ -191,6 +191,7 @@ Describes deprecated messaging attributes.
|
|||
| `messaging.eventhubs.consumer.group` | string | Deprecated, use `messaging.consumer.group.name` instead. | `$Default` | <br>Replaced by `messaging.consumer.group.name`. |
|
||||
| `messaging.kafka.consumer.group` | string | Deprecated, use `messaging.consumer.group.name` instead. | `my-group` | <br>Replaced by `messaging.consumer.group.name`. |
|
||||
| `messaging.kafka.destination.partition` | int | Deprecated, use `messaging.destination.partition.id` instead. | `2` | <br>Replaced by `messaging.destination.partition.id`. |
|
||||
| `messaging.kafka.message.offset` | int | Deprecated, use `messaging.kafka.offset` instead. | `42` | <br>Replaced by `messaging.kafka.offset`. |
|
||||
| `messaging.operation` | string | Deprecated, use `messaging.operation.type` instead. | `publish`; `create`; `process` | <br>Replaced by `messaging.operation.type`. |
|
||||
| `messaging.rocketmq.client_group` | string | Deprecated, use `messaging.consumer.group.name` instead. | `myConsumerGroup` | <br>Replaced by `messaging.consumer.group.name` on the consumer spans. No replacement for producer spans. |
|
||||
| `messaging.servicebus.destination.subscription_name` | string | Deprecated, use `messaging.servicebus.destination.subscription_name` instead. | `subscription-a` | <br>Replaced by `messaging.servicebus.destination.subscription_name`. |
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ For Apache Kafka, the following additional attributes are defined:
|
|||
| [`messaging.consumer.group.name`](/docs/attributes-registry/messaging.md) | string | Kafka [consumer group id](https://docs.confluent.io/platform/current/clients/consumer.html). | `my-group`; `indexer` | `Recommended` |  |
|
||||
| [`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` |  |
|
||||
| [`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. |  |
|
||||
| [`messaging.kafka.message.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. |  |
|
||||
| [`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. |  |
|
||||
| [`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. |  |
|
||||
| [`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. |  |
|
||||
| [`server.port`](/docs/attributes-registry/server.md) | int | Server port number. [11] | `80`; `8080`; `443` | `Recommended` |  |
|
||||
|
|
|
|||
|
|
@ -57,3 +57,11 @@ groups:
|
|||
examples: 'subscription-a'
|
||||
deprecated: >
|
||||
Replaced by `messaging.servicebus.destination.subscription_name`.
|
||||
- id: messaging.kafka.message.offset
|
||||
type: int
|
||||
stability: experimental
|
||||
brief: >
|
||||
Deprecated, use `messaging.kafka.offset` instead.
|
||||
examples: 42
|
||||
deprecated: >
|
||||
Replaced by `messaging.kafka.offset`.
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ groups:
|
|||
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.
|
||||
examples: 'myKey'
|
||||
- id: kafka.message.offset
|
||||
- id: kafka.offset
|
||||
type: int
|
||||
stability: experimental
|
||||
brief: >
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ groups:
|
|||
- ref: messaging.kafka.message.key
|
||||
requirement_level:
|
||||
recommended: If span describes operation on a single message.
|
||||
- ref: messaging.kafka.message.offset
|
||||
- ref: messaging.kafka.offset
|
||||
requirement_level:
|
||||
recommended: If span describes operation on a single message.
|
||||
- ref: messaging.kafka.message.tombstone
|
||||
|
|
|
|||
|
|
@ -4,6 +4,10 @@ versions:
|
|||
next:
|
||||
all:
|
||||
changes:
|
||||
# https://github.com/open-telemetry/semantic-conventions/pull/1245
|
||||
- rename_attributes:
|
||||
attribute_map:
|
||||
messaging.kafka.message.offset: messaging.kafka.offset
|
||||
# https://github.com/open-telemetry/semantic-conventions/pull/815
|
||||
- rename_attributes:
|
||||
attribute_map:
|
||||
|
|
|
|||
Loading…
Reference in New Issue