Skip to content

Commit

Permalink
Specify destination name for RabbitMQ
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopgrassi committed Oct 30, 2024
1 parent 5261f96 commit d9574a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/messaging/rabbitmq.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@ The Semantic Conventions for [RabbitMQ](https://www.rabbitmq.com/) extend and ov

## RabbitMQ attributes

### Destination name

In RabbitMQ, the destination is defined by an *exchange* and a *routing key*.
`messaging.destination.name` MUST be set to the name of the exchange. This will be an empty string if the default exchange is used.
`messaging.destination.name` MUST be set according to the following rules:

- Both *exchange* and *routing key* present and non-empty: `{exchange}:{routing key}`
- Only *exchange* present and non-empty: `{exchange}`
- Only *routing key* present and non-empty: `{routing key}`
- Otherwise: `amp.default`

<!-- semconv messaging.rabbitmq -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
Expand Down

0 comments on commit d9574a8

Please sign in to comment.