-
Notifications
You must be signed in to change notification settings - Fork 648
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
Move Metrics API behind internal package #2651
Conversation
cbc1b03
to
946c9b4
Compare
I separated the move of |
946c9b4
to
7c18a32
Compare
7c18a32
to
c400065
Compare
3cdc355
to
2c1cb20
Compare
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
Looks good, I have only one comment, this approach puts all public metric symbols in @lzchen WDYT? |
I took a look at tracing API, we have most stuff directly in opentelemetry-python/opentelemetry-api/src/opentelemetry/trace/__init__.py Lines 588 to 614 in 7647a11
Even some stuff from I think it's reasonable to separate them out more for the SDK e.g. we could have an |
All right, if in tracing we have everything in the base module, then this approach is consistent. I can work on the corresponding PR for the SDK and have some separation there, approving. 👍 |
2c1cb20
to
f43484c
Compare
Description
Moves the Metrics API behind an internal package
opentelemetry._metrics._internal
. This will remain with the underscore once we make a stable release of metrics i.e.opentelemetry.metrics._internal
. Finally, all of the public API is expose inopentelemetry._metrics
package__init__.py
file. This clearly shows what the public is.Updated tests and documentation to build with these changes.
Fixes #2622
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Tests passing, docs look good
Does This PR Require a Contrib Repo Change?
Checklist: