Skip to content

Commit

Permalink
chore: use connection attempt as activity name
Browse files Browse the repository at this point in the history
  • Loading branch information
aygalinc authored and lukebakken committed Dec 11, 2024
1 parent 07f7a29 commit 2a99147
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/RabbitMQ.Client/Impl/Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ await _channel0.ConnectionOpenAsync(_config.VirtualHost, cancellationToken)

return this;
}
catch(Exception ex)
catch (Exception ex)
{
connectionActivity?.ReportException(ex);
try
Expand Down
2 changes: 1 addition & 1 deletion projects/RabbitMQ.Client/Impl/RabbitMQActivitySource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static class RabbitMQActivitySource
}

Activity? connectionActivity =
s_connectionSource.StartRabbitMQActivity("connection open", ActivityKind.Client);
s_connectionSource.StartRabbitMQActivity("connection attempt", ActivityKind.Client);
connectionActivity?
.SetNetworkTags(frameHandler);
return connectionActivity;
Expand Down
1 change: 1 addition & 0 deletions projects/RabbitMQ.Client/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const RabbitMQ.Client.RabbitMQActivitySource.ConnectionSourceName = "RabbitMQ.Client.Connection" -> string!

0 comments on commit 2a99147

Please sign in to comment.