Should Kafka offset be used as messaging.message.id
?
#2971
Labels
area:semantic-conventions
Related to semantic conventions
semconv:messaging
spec:trace
Related to the specification/trace directory
What are you trying to achieve?
Currently the Go Kafka instrumentations sets the record offset as the value of the
messaging.message_id
attribute:I was requested to introduce a similar change to the Java instrumentation, but I'm not sure whether this is valid: an offset is only unique in a partition (which has a dedicated
messaging.kafka.message.partition
attribute), so I don't think that it isas the spec describes this attribute; because you also need the partition id to identify the message, so it's half of an identifier really.
Should the Kafka offset be set as the value of the
messaging.message.id
attribute? Or, alternatively, should we introduce amessaging.kafka.message.offset
attribute?Additional context.
The text was updated successfully, but these errors were encountered: