From d2fe09b38758ef5ac0e14b70a9e697c3e79f8724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stef=C3=A1n=20J=C3=B6kull=20Sigur=C3=B0arson?= Date: Mon, 21 Nov 2022 10:34:14 +0000 Subject: [PATCH] Removing messaging.operation for 'send' operations. --- projects/RabbitMQ.Client/client/impl/RabbitMQActivitySource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/RabbitMQ.Client/client/impl/RabbitMQActivitySource.cs b/projects/RabbitMQ.Client/client/impl/RabbitMQActivitySource.cs index c089954e3..d4ba59951 100644 --- a/projects/RabbitMQ.Client/client/impl/RabbitMQActivitySource.cs +++ b/projects/RabbitMQ.Client/client/impl/RabbitMQActivitySource.cs @@ -104,7 +104,7 @@ private static Activity StartRabbitMQActivity(string name, ActivityKind kind, Ac private static void PopulateMessagingTags(string operation, string routingKey, string exchange, ulong deliveryTag, IReadOnlyBasicProperties readOnlyBasicProperties, int bodySize, Activity activity) { activity - .SetTag("messaging.operation", operation) + .SetTag("messaging.operation", operation == "send" ? operation : null) .SetTag("messaging.destination", string.IsNullOrEmpty(exchange) ? "amq.default" : exchange) .SetTag("messaging.destination_kind", "topic") .SetTag("messaging.rabbitmq.routing_key", routingKey)