Skip to content

Conversation

axw
Copy link
Contributor

@axw axw commented Sep 1, 2025

Description

Split the monolithic Providers interface back into signal-specific interfaces and associated factory methods. This will enable the Factory interface to be expanded over time, without breaking changes. This should be the last major interface refactor for telemetry 🤞

Link to tracking issue

Fixes #13722

Testing

N/A

Documentation

N/A

@codecov
Copy link

codecov bot commented Sep 3, 2025

Codecov Report

❌ Patch coverage is 94.73684% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.40%. Comparing base (37a3ace) to head (6ca5784).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
service/service.go 90.62% 4 Missing and 2 partials ⚠️

❌ Your patch status has failed because the patch coverage (94.73%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13739      +/-   ##
==========================================
+ Coverage   91.38%   91.40%   +0.02%     
==========================================
  Files         647      646       -1     
  Lines       42597    42605       +8     
==========================================
+ Hits        38927    38944      +17     
+ Misses       2845     2838       -7     
+ Partials      825      823       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

axw added a commit to axw/opentelemetry-collector that referenced this pull request Sep 4, 2025
Prep work for
open-telemetry#13722,
to split apart the Providers interface into per-signal providers. In a
followup, I will update the telemetry.Factory interface.

See open-telemetry#13739
for the end result.
axw added a commit to axw/opentelemetry-collector that referenced this pull request Sep 4, 2025
Prep work for
open-telemetry#13722,
to split apart the Providers interface into per-signal providers. In a
followup, I will update the telemetry.Factory interface.

See open-telemetry#13739
for the end result.
axw added a commit to axw/opentelemetry-collector that referenced this pull request Sep 4, 2025
Prep work for
open-telemetry#13722,
to split apart the Providers interface into per-signal providers. In a
followup, I will update the telemetry.Factory interface.

See open-telemetry#13739
for the end result.
axw added a commit to axw/opentelemetry-collector that referenced this pull request Sep 4, 2025
Prep work for
open-telemetry#13722,
to split apart the Providers interface into per-signal providers. In a
followup, I will update the telemetry.Factory interface.

See open-telemetry#13739
for the end result.
github-merge-queue bot pushed a commit that referenced this pull request Sep 11, 2025
#### Description

Refactor the internals of the package to create independent SDKs for
each of the logger, meter, and tracer providers. I have introduced new
interfaces to the telemetry package to expose the Shutdown methods. This
will be important once we return the providers directly - they will need
to support being independently shut down.

This is prep work for
#13722,
to split apart the `telemetry.Providers` interface into per-signal
providers. In a followup, I will update the telemetry.Factory interface.
See #13739
for the end result.

#### Link to tracking issue

Part of
#13722

#### Testing

Unit tests only.

#### Documentation

N/A
@axw axw force-pushed the telemetry-interface-take2 branch from 349200e to 855ec91 Compare September 12, 2025 01:40
@axw axw force-pushed the telemetry-interface-take2 branch from 855ec91 to 5e23fb7 Compare September 12, 2025 01:42
@axw axw marked this pull request as ready for review September 12, 2025 02:52
@axw axw requested a review from a team as a code owner September 12, 2025 02:52
@axw axw requested a review from mx-psi September 12, 2025 02:52
@mx-psi mx-psi enabled auto-merge September 12, 2025 11:56
@mx-psi mx-psi added this pull request to the merge queue Sep 12, 2025
Merged via the queue into open-telemetry:main with commit 2710536 Sep 12, 2025
56 of 58 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 12, 2025
@axw axw deleted the telemetry-interface-take2 branch September 14, 2025 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

What's the plan for adding more providers if we need to in the future? (e.g. something for profiling?)

2 participants