Skip to content

[Api] GetTracer supports schema URL#6736

Merged
Kielek merged 3 commits intoopen-telemetry:mainfrom
Kielek:api-tracer-schema-url
Dec 1, 2025
Merged

[Api] GetTracer supports schema URL#6736
Kielek merged 3 commits intoopen-telemetry:mainfrom
Kielek:api-tracer-schema-url

Conversation

@Kielek
Copy link
Member

@Kielek Kielek commented Dec 1, 2025

Fixes #2417
API does not provide GetMeter methods. It is recommended to utilize Meter constructor from System.Diagnostics.DiagnosticSource.

Changes

Public API changes based on https://github.com/dotnet/roslyn/blob/main/docs/Adding%20Optional%20Parameters%20in%20Public%20API.md
Required by https://github.com/open-telemetry/opentelemetry-specification/pull/1666/files

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.Api Issues related to OpenTelemetry.Api NuGet package label Dec 1, 2025
@Kielek Kielek marked this pull request as ready for review December 1, 2025 09:31
@Kielek Kielek requested a review from a team as a code owner December 1, 2025 09:31
@codecov
Copy link

codecov bot commented Dec 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.82%. Comparing base (4e2c575) to head (294e65e).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6736      +/-   ##
==========================================
+ Coverage   86.78%   86.82%   +0.04%     
==========================================
  Files         258      258              
  Lines       11990    12001      +11     
==========================================
+ Hits        10405    10420      +15     
+ Misses       1585     1581       -4     
Flag Coverage Δ
unittests-Project-Experimental 86.45% <100.00%> (-0.26%) ⬇️
unittests-Project-Stable 86.71% <100.00%> (+0.05%) ⬆️

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

Files with missing lines Coverage Δ
src/OpenTelemetry.Api/Trace/TracerProvider.cs 92.92% <100.00%> (+0.76%) ⬆️

... and 1 file with indirect coverage changes

@rajkumar-rangaraj rajkumar-rangaraj added this pull request to the merge queue Dec 1, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 1, 2025
@Kielek Kielek added this pull request to the merge queue Dec 1, 2025
Merged via the queue into open-telemetry:main with commit 33f269f Dec 1, 2025
63 checks passed
@Kielek Kielek deleted the api-tracer-schema-url branch December 1, 2025 21:08
This was referenced Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg:OpenTelemetry.Api Issues related to OpenTelemetry.Api NuGet package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add schema URL support

3 participants