OpenTelemetry with RabbitMQ add messaging.rabbitmq.destination.routing_key from the semantic convention #2814
Labels
ideal-for-user-contribution
An issue that would ideal for a user to get started with contributing.
type: enhancement
Milestone
Expected Behavior
There are several fields in the semantic convention for RabbitMQ and RabbitTemplate is missing the one named
messaging.rabbitmq.destination.routing_key
.Current Behavior
At the moment, in RabbitTemplate, the observationContext concatenates "exchange/routingKey" in the field
messaging.destination.name
Context
If we want to be fully "OpenTelemetry compliant" then we should use all the fields we can with the information we have.
IMO it is a mistake to concatenate two different strings in one, it makes the research or filtering in traces/metrics afterwards more complicated.
messaging.destination.name
must be the name of the exchangemessaging.rabbitmq.destination.routing_key
must be the name of the routingKeyEDIT :
We can also add somes tags for RabbitListenerObservationConvention :
messaging.destination.name
which will be the consumerQueuemessaging.rabbitmq.message.delivery_tag
the delivery tag of the message being processedThe text was updated successfully, but these errors were encountered: