-
Notifications
You must be signed in to change notification settings - Fork 415
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
[API] Remove Meters #2205
[API] Remove Meters #2205
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2205 +/- ##
==========================================
- Coverage 87.49% 87.31% -0.18%
==========================================
Files 169 169
Lines 4891 4900 +9
==========================================
- Hits 4279 4278 -1
- Misses 612 622 +10
|
Thanks for the PR. Few questions before reviewing it :)
|
This is a blocker for scenarios when applications use Disclosure: I happen to be instrumenting such an application, and in our case, the issue is so severe that we just can not use opentelemetry for metrics, at all, if this is not resolved. The proper label can be either "blocking", or "priority:p0", no strong opinion here, as long as it gets addressed, hence the PR.
This is a two-fold question:
I will split this PR to keep only the fix itself, and move the ABI changes with #1983, for clarity, and to merge this PR sooner. The discussion on ABI still needs to happen, as this is blocking many fixes, but sure, let's do that separately. |
Now ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Good to add a unit test. Also, should we enable this macro in the maintainers CI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks :)
Thanks for the review. Added unit test, and coverage in maintainers CI. |
Fixes #2184
Changes
Changes:
CMake
: Add an experimental option,WITH_REMOVE_METER_PREVIEW
.API
: expose the new methodMeterProvider::RemoveMeter()
.SDK
: implementation forMeterProvider::RemoveMeter()
.opentelemetry::v1
namespace, to make the implementation independent of the ABI version exposed.For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes