Skip to content

Commit

Permalink
Add new otel attribute for Rabitmq backend
Browse files Browse the repository at this point in the history
  • Loading branch information
sanket-mundra committed Jan 30, 2024
1 parent fc4d7c0 commit 2000546
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public class MessagingSemanticConventionUtils {
new ArrayList<>(
Arrays.asList(
RawSpanConstants.getValue(RabbitMq.RABBIT_MQ_ROUTING_KEY),
OtelMessagingSemanticConventions.RABBITMQ_ROUTING_KEY.getValue()));
OtelMessagingSemanticConventions.RABBITMQ_ROUTING_KEY.getValue(),
OtelMessagingSemanticConventions.RABBITMQ_DESTINATION_ROUTING_KEY.getValue()));

/**
* @param event Object encapsulating span data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ public enum OtelMessagingSemanticConventions {
MESSAGING_SYSTEM("messaging.system"),
MESSAGING_URL("messaging.url"),
RABBITMQ_MESSAGING_SYSTEM_VALUE("rabbitmq"),
/**
* Otel semantic-conventions-java has marked this @deprecated. Use {@link
* OtelMessagingSemanticConventions#RABBITMQ_DESTINATION_ROUTING_KEY} instead
*/
RABBITMQ_ROUTING_KEY("messaging.rabbitmq.routing_key"),
RABBITMQ_DESTINATION_ROUTING_KEY("messaging.rabbitmq.destination.routing_key"),
RABBITMQ_COMMAND("rabbitmq.command"),
KAFKA_MESSAGING_SYSTEM_VALUE("kafka"),
AWS_SQS_MESSAGING_SYSTEM_VALUE("sqs"),
Expand Down

0 comments on commit 2000546

Please sign in to comment.