Skip to content

Commit 4e9e37f

Browse files
authored
Slight improvement to readability to Metric ConsoleExporter (#6384)
1 parent f8dc06a commit 4e9e37f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/OpenTelemetry.Exporter.Console/ConsoleMetricExporter.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,12 @@ public override ExportResult Export(in Batch<Metric> batch)
226226
msg.Append(' ');
227227
}
228228

229-
msg.Append(metric.MetricType);
229+
msg.AppendLine();
230+
#if NET
231+
msg.AppendLine(CultureInfo.InvariantCulture, $"Metric Type: {metric.MetricType}");
232+
#else
233+
msg.Append($"Metric Type: {metric.MetricType}");
234+
#endif
230235
msg.AppendLine();
231236
#if NET
232237
msg.Append(CultureInfo.InvariantCulture, $"Value: {valueDisplay}");

0 commit comments

Comments
 (0)