Skip to content

Commit

Permalink
Addressing a comment in support Activity Status and Description in Co…
Browse files Browse the repository at this point in the history
…nsole Exporter. (#3064)
  • Loading branch information
Yun-Ting authored Mar 17, 2022
1 parent a1e7167 commit ea5d11d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ public override ExportResult Export(in Batch<Activity> batch)
this.WriteLine($"StatusCode : {activity.Status}");
if (!string.IsNullOrEmpty(activity.StatusDescription))
{
this.WriteLine($"Error : {activity.StatusDescription}");
this.WriteLine($"Activity.StatusDescription : {activity.StatusDescription}");
}
}
else if (!string.IsNullOrEmpty(statusCode))
{
this.WriteLine($" StatusCode : {statusCode}");
if (!string.IsNullOrEmpty(statusDesc))
{
this.WriteLine($" Error : {statusDesc}");
this.WriteLine($" Activity.StatusDescription : {statusDesc}");
}
}

Expand Down

0 comments on commit ea5d11d

Please sign in to comment.