Skip to content

Commit

Permalink
action is assigned with null if operation name is not defined(#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamilaban committed Jan 5, 2022
1 parent 136ec1e commit d6575d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public object BeforeSendRequest(ref Message request, IClientChannel channel)

if (activity != null)
{
string action = request.Headers.Action;
string action = request.Headers.Action ?? string.Empty;
activity.DisplayName = action;

Propagators.DefaultTextMapPropagator.Inject(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public object AfterReceiveRequest(ref Message request, IClientChannel channel, I

if (activity != null)
{
string action = request.Headers.Action;
string action = request.Headers.Action ?? string.Empty;
activity.DisplayName = action;

if (activity.IsAllDataRequested)
Expand Down

0 comments on commit d6575d1

Please sign in to comment.