Skip to content

Commit

Permalink
chore: enhance 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 9727eeb commit 07f7a29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions projects/RabbitMQ.Client/Impl/Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ internal void TakeOver(Connection other)
internal async ValueTask<IConnection> OpenAsync(CancellationToken cancellationToken)
{
cancellationToken.ThrowIfCancellationRequested();
Activity? _connectionActivity = RabbitMQActivitySource.OpenConnection(_frameHandler);
Activity? connectionActivity = RabbitMQActivitySource.OpenConnection(_frameHandler);
try
{
RabbitMqClientEventSource.Log.ConnectionOpened();
Expand All @@ -249,7 +249,7 @@ await _channel0.ConnectionOpenAsync(_config.VirtualHost, cancellationToken)
}
catch(Exception ex)
{
_connectionActivity?.ReportException(ex);
connectionActivity?.ReportException(ex);
try
{
var ea = new ShutdownEventArgs(ShutdownInitiator.Library, Constants.InternalError, "FailedOpen");
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("rabbitmq connect", ActivityKind.Client);
s_connectionSource.StartRabbitMQActivity("connection open", ActivityKind.Client);
connectionActivity?
.SetNetworkTags(frameHandler);
return connectionActivity;
Expand Down

0 comments on commit 07f7a29

Please sign in to comment.