Skip to content

Conversation

@Kielek
Copy link
Member

@Kielek Kielek commented Nov 21, 2025

Towards #6164

Changes

[Exporter.Console] Export SchemaUrl for spans

Output when this property is set.

Activity.TraceId:            4339806bc6452b773809c8c896f2a804
Activity.SpanId:             dcd78b34778c4891
Activity.TraceFlags:         Recorded
Activity.DisplayName:        POST:/api/request
Activity.Kind:               Client
Activity.StartTime:          2025-11-21T08:49:49.3201059Z
Activity.Duration:           00:00:00.0316657
Activity.Tags:
    customClientTag: Custom Tag Value for Client
    http.status_code: 200
    response.content: echo: client message: 11/21/2025 9:49:49 AM
    response.length: 43
    http.header.Server: Microsoft-HTTPAPI/2.0
    http.header.Date: Fri, 21 Nov 2025 08:49:49 GMT
Activity.Events:
    PostAsync:Started [11/21/2025 8:49:49 AM +00:00]
    PostAsync:Ended [11/21/2025 8:49:49 AM +00:00]
Instrumentation scope (ActivitySource):
    Name: Samples.SampleClient
    Version: 1.0.0
    Schema Url: https://opentelemetry.io/schemas/1.17.0
Resource associated with Activity:
    service.name: console-test
    service.instance.id: f54486c7-cae7-4ffd-9d67-d3ab0623ef7b
    telemetry.sdk.name: opentelemetry
    telemetry.sdk.language: dotnet
    telemetry.sdk.version: 1.14.1-alpha.0.21

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • [ ] Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • [ ] Changes in public API reviewed (if applicable)

@github-actions github-actions bot added the pkg:OpenTelemetry.Exporter.Console Issues related to OpenTelemetry.Exporter.Console NuGet package label Nov 21, 2025
@codecov
Copy link

codecov bot commented Nov 21, 2025

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 86.77%. Comparing base (3a96380) to head (d27d6c0).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...emetry.Exporter.Console/ConsoleActivityExporter.cs 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6713      +/-   ##
==========================================
- Coverage   86.77%   86.77%   -0.01%     
==========================================
  Files         258      258              
  Lines       11973    11975       +2     
==========================================
+ Hits        10390    10391       +1     
- Misses       1583     1584       +1     
Flag Coverage Δ
unittests-Project-Experimental 86.73% <50.00%> (+0.02%) ⬆️
unittests-Project-Stable 86.70% <50.00%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...emetry.Exporter.Console/ConsoleActivityExporter.cs 47.05% <50.00%> (+0.08%) ⬆️

... and 2 files with indirect coverage changes

@Kielek Kielek marked this pull request as ready for review November 21, 2025 11:10
@Kielek Kielek requested a review from a team as a code owner November 21, 2025 11:10
@rajkumar-rangaraj rajkumar-rangaraj added this pull request to the merge queue Nov 21, 2025
Merged via the queue into open-telemetry:main with commit c2095be Nov 21, 2025
52 checks passed
@Kielek Kielek deleted the console-exporter-schema-url-spans branch November 21, 2025 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg:OpenTelemetry.Exporter.Console Issues related to OpenTelemetry.Exporter.Console NuGet package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants