From ea5d11d3920d7f40161db73f401139f907123af2 Mon Sep 17 00:00:00 2001 From: Yun-Ting Lin Date: Thu, 17 Mar 2022 16:04:35 -0700 Subject: [PATCH] Addressing a comment in support Activity Status and Description in Console Exporter. (#3064) --- src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs b/src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs index b715d71904f..5d0ed336e81 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs @@ -86,7 +86,7 @@ public override ExportResult Export(in Batch 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)) @@ -94,7 +94,7 @@ public override ExportResult Export(in Batch batch) this.WriteLine($" StatusCode : {statusCode}"); if (!string.IsNullOrEmpty(statusDesc)) { - this.WriteLine($" Error : {statusDesc}"); + this.WriteLine($" Activity.StatusDescription : {statusDesc}"); } }