Skip to content

Commit c2095be

Browse files
authored
[Exporter.Console] Export SchemaUrl for spans (#6713)
1 parent 3a96380 commit c2095be

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/OpenTelemetry.Exporter.Console/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Notes](../../RELEASENOTES.md).
66

77
## Unreleased
88

9+
* Added support for `ActivitySource.TelemetrySchemaUrl` property.
10+
([#6713](https://github.com/open-telemetry/opentelemetry-dotnet/pull/6713))
11+
912
## 1.14.0
1013

1114
Released 2025-Nov-12

src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ public override ExportResult Export(in Batch<Activity> batch)
118118
this.WriteLine($" Version: {activity.Source.Version}");
119119
}
120120

121+
if (!string.IsNullOrEmpty(activity.Source.TelemetrySchemaUrl))
122+
{
123+
this.WriteLine($" Schema Url: {activity.Source.TelemetrySchemaUrl}");
124+
}
125+
121126
if (activity.Source.Tags?.Any() == true)
122127
{
123128
this.WriteLine(" Tags:");

0 commit comments

Comments
 (0)