-
Notifications
You must be signed in to change notification settings - Fork 894
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING: Remove
messaging.consumer.id
, make messaging.client_id
…
…generic (#3336) Fixes #2015 ## Changes Based on discussions in the messaging workgroup and in issue #2015, this PR proposes to remove `messaging.consumer.id`, and to replace both `messaging.kafka.client_id` and `messaging.rocketmq.client_id` with a generic `messaging.client_id`. `messaging.consumer.id` is defined to always be set to the `client_id` of the used messaging system, except for Kafka, where it was defined to be a combination of `messaging.kafka.client_id` and `messaging.kafka.consumer.group`, or just the latter if `messaging.kafka.client_id` is not available. With this definition, the semantics of `consumer.id` are different between messaging systems, and even different for different Kafka scenarios. The proposed `messaging.client_id` has consistent semantics ("an unique client id, when it is available"), and can be used instead of `messaging.consumer.id` in almost all cases. In addition to have consistent semantics, this also simplifies the semantic conventions, as instead of `messaging.consumer.id` `messaging.kafka.client_id` `messaging.rocketmq.client_id` there is now just: `messaging.client_id`.
- Loading branch information
Showing
4 changed files
with
112 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
file_format: 1.1.0 | ||
schema_url: https://opentelemetry.io/schemas/1.21.0 | ||
versions: | ||
1.21.0: | ||
spans: | ||
changes: | ||
# https://github.com/open-telemetry/opentelemetry-specification/pull/3336 | ||
- rename_attributes: | ||
attribute_map: | ||
messaging.kafka.client_id: messaging.client_id | ||
messaging.rocketmq.client_id: messaging.client_id | ||
1.20.0: | ||
spans: | ||
changes: | ||
# https://github.com/open-telemetry/opentelemetry-specification/pull/3272 | ||
- rename_attributes: | ||
attribute_map: | ||
net.app.protocol.name: net.protocol.name | ||
net.app.protocol.version: net.protocol.version | ||
1.19.0: | ||
spans: | ||
changes: | ||
# https://github.com/open-telemetry/opentelemetry-specification/pull/3209 | ||
- rename_attributes: | ||
attribute_map: | ||
faas.execution: faas.invocation_id | ||
# https://github.com/open-telemetry/opentelemetry-specification/pull/3188 | ||
- rename_attributes: | ||
attribute_map: | ||
faas.id: cloud.resource_id | ||
# https://github.com/open-telemetry/opentelemetry-specification/pull/3190 | ||
- rename_attributes: | ||
attribute_map: | ||
http.user_agent: user_agent.original | ||
resources: | ||
changes: | ||
# https://github.com/open-telemetry/opentelemetry-specification/pull/3190 | ||
- rename_attributes: | ||
attribute_map: | ||
browser.user_agent: user_agent.original | ||
1.18.0: | ||
1.17.0: | ||
spans: | ||
changes: | ||
# https://github.com/open-telemetry/opentelemetry-specification/pull/2957 | ||
- rename_attributes: | ||
attribute_map: | ||
messaging.consumer_id: messaging.consumer.id | ||
messaging.protocol: net.app.protocol.name | ||
messaging.protocol_version: net.app.protocol.version | ||
messaging.destination: messaging.destination.name | ||
messaging.temp_destination: messaging.destination.temporary | ||
messaging.destination_kind: messaging.destination.kind | ||
messaging.message_id: messaging.message.id | ||
messaging.conversation_id: messaging.message.conversation_id | ||
messaging.message_payload_size_bytes: messaging.message.payload_size_bytes | ||
messaging.message_payload_compressed_size_bytes: messaging.message.payload_compressed_size_bytes | ||
messaging.rabbitmq.routing_key: messaging.rabbitmq.destination.routing_key | ||
messaging.kafka.message_key: messaging.kafka.message.key | ||
messaging.kafka.partition: messaging.kafka.destination.partition | ||
messaging.kafka.tombstone: messaging.kafka.message.tombstone | ||
messaging.rocketmq.message_type: messaging.rocketmq.message.type | ||
messaging.rocketmq.message_tag: messaging.rocketmq.message.tag | ||
messaging.rocketmq.message_keys: messaging.rocketmq.message.keys | ||
messaging.kafka.consumer_group: messaging.kafka.consumer.group | ||
1.16.0: | ||
1.15.0: | ||
spans: | ||
changes: | ||
# https://github.com/open-telemetry/opentelemetry-specification/pull/2743 | ||
- rename_attributes: | ||
attribute_map: | ||
http.retry_count: http.resend_count | ||
1.14.0: | ||
1.13.0: | ||
spans: | ||
changes: | ||
# https://github.com/open-telemetry/opentelemetry-specification/pull/2614 | ||
- rename_attributes: | ||
attribute_map: | ||
net.peer.ip: net.sock.peer.addr | ||
net.host.ip: net.sock.host.addr | ||
1.12.0: | ||
1.11.0: | ||
1.10.0: | ||
1.9.0: | ||
1.8.0: | ||
spans: | ||
changes: | ||
- rename_attributes: | ||
attribute_map: | ||
db.cassandra.keyspace: db.name | ||
db.hbase.namespace: db.name | ||
1.7.0: | ||
1.6.1: | ||
1.5.0: | ||
1.4.0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters