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
|
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._metricspackage__init__.pyfile. 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: