semconv.com

messaging.kafka.message.key

Developmentstringas of v1.44.0

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.

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

Used by

spans (5)

  • messaging.create.producer
  • messaging.process.consumer
  • messaging.receive.client
  • messaging.send.client
  • messaging.send.producer

* required on that signal.

History

  1. v1.31.0

    Stability label respelled from experimental to development.

  2. v1.30.0

    Already present at v1.30.0, the oldest release tracked here (experimental).

Definition sourceRegistry docsJSON