Skip to content

Commit d2fe09b

Browse files
committed
Removing messaging.operation for 'send' operations.
1 parent 2461db8 commit d2fe09b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/RabbitMQ.Client/client/impl/RabbitMQActivitySource.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private static Activity StartRabbitMQActivity(string name, ActivityKind kind, Ac
104104
private static void PopulateMessagingTags(string operation, string routingKey, string exchange, ulong deliveryTag, IReadOnlyBasicProperties readOnlyBasicProperties, int bodySize, Activity activity)
105105
{
106106
activity
107-
.SetTag("messaging.operation", operation)
107+
.SetTag("messaging.operation", operation == "send" ? operation : null)
108108
.SetTag("messaging.destination", string.IsNullOrEmpty(exchange) ? "amq.default" : exchange)
109109
.SetTag("messaging.destination_kind", "topic")
110110
.SetTag("messaging.rabbitmq.routing_key", routingKey)

0 commit comments

Comments
 (0)