Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint committed Jun 12, 2023
1 parent b8a24ae commit 21af27c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ private void FinishCommandSpan(object? value, SpanStatus spanStatus)
return;
}

// Try to lookup the associated connection span so that we can store the db.name in
// Try to lookup the associated connection span so that we can store the db.name in
// the command span as well. This will be easier for users to read/identify than the
// ConnectionId (which is a Guid)
var connectionId = value?.GetGuidProperty("ConnectionId");
var connectionId = value.GetGuidProperty("ConnectionId");
var transaction = _hub.GetTransactionIfSampled();
if (TryGetConnectionSpan(transaction!, connectionId) is { } connectionSpan)
{
Expand All @@ -190,7 +190,7 @@ private void FinishCommandSpan(object? value, SpanStatus spanStatus)
}
}

commandSpan.Description = value?.GetStringProperty("Command.CommandText");
commandSpan.Description = value.GetStringProperty("Command.CommandText");
commandSpan.Finish(spanStatus);
}

Expand Down

0 comments on commit 21af27c

Please sign in to comment.