-
Notifications
You must be signed in to change notification settings - Fork 544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: migrate away from deprecated addMetricReader
for SDK 2.0
#2654
base: main
Are you sure you want to change the base?
Conversation
This migrates from the deprecated `addMetricReader` method to the constructor option in preparation for the upcoming SDK 2.0 release. All usages are in tests and example code, there are no user-facing changes. Fixes open-telemetry#2646
This package does not have an assigned component owner and is considered unmaintained. As such this package is in feature-freeze and this PR will be closed with 14 days unless a new owner or a sponsor (a member of @open-telemetry/javascript-approvers) for the feature is found. It is the responsibility of the author to find a sponsor for this feature. |
addMetricReader
for SDK 2.0addMetricReader
for SDK 2.0
I'll sponsor this. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2654 +/- ##
==========================================
- Coverage 90.79% 90.78% -0.02%
==========================================
Files 169 169
Lines 8061 8061
Branches 1646 1646
==========================================
- Hits 7319 7318 -1
- Misses 742 743 +1 |
This migrates from the deprecated
addMetricReader
method to the constructor option in preparation for the upcoming SDK 2.0 release.This PR migrates all usages in the entire repository instead of per-package, since there aren't that many total occurrences and they are all in tests and example code. There are no user-facing changes, so I also didn't think there's anything useful to say in the CHANGELOG here.
Fixes #2646 (cc @pichlermarc @trentm)