semantic-conventions/semantic_conventions/trace
Johannes Tax 15f3e529f1 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`.
2023-04-24 17:13:21 -06:00
..
aws Expand scope of `faas.id` to `cloud.resource_id` (#3188) 2023-02-27 12:13:13 -06:00
exporter Define semantic conventions yaml for non-otlp conventions (#2850) 2022-10-25 08:46:06 -07:00
instrumentation Added AWS S3 semantic conventions (#3251) 2023-03-22 08:29:16 -07:00
cloudevents.yaml Add 'type' to all groups (#2693) 2022-07-27 11:30:47 +02:00
compatibility.yaml Add 'type' to all groups (#2693) 2022-07-27 11:30:47 +02:00
database.yaml Change `db.statement` to only be collected if there is sanitization (#3127) 2023-04-06 10:35:33 -07:00
faas.yaml Expand scope of `faas.id` to `cloud.resource_id` (#3188) 2023-02-27 12:13:13 -06:00
feature-flag.yaml Add feature flagging semantic conventions (#2529) 2022-12-01 12:13:48 -08:00
general.yaml Add warning about net.* attributes which are used by HTTP semconv (#3278) 2023-04-06 10:05:07 -04:00
http.yaml Show relationship between http target and route in example usage (#3292) 2023-03-08 09:12:28 -08:00
messaging.yaml BREAKING: Remove `messaging.consumer.id`, make `messaging.client_id` generic (#3336) 2023-04-24 17:13:21 -06:00
rpc.yaml Add warning about net.* attributes which are used by HTTP semconv (#3278) 2023-04-06 10:05:07 -04:00
trace-exception.yaml [Logs] Add semantic conventions for writing exceptions (#2819) 2022-09-29 21:38:40 -07:00