-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unify metric API into the one otel/metric
package
#4018
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4018 +/- ##
=======================================
- Coverage 82.2% 82.2% -0.1%
=======================================
Files 175 175
Lines 13065 13065
=======================================
- Hits 10742 10740 -2
- Misses 2102 2104 +2
Partials 221 221
|
d45e44a
to
8c394e2
Compare
otel/metric
package
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.
I am aware that my comments are mostly concerns about the OTel Metrics API Spec. However, I do not think that the package users need to know/check exactly what is in the spec.
@seh PTAL 😉 |
Do the types and functions that had lived in the For example, does the specification mandate that we expose types like |
All of the instruments need to be exported as they are returned from their respective creation method of the The |
Got it. This is not the opportunity I was hoping to find. |
@Aneurysm9 thoughts? |
This comment was marked as resolved.
This comment was marked as resolved.
## This PR Upgrade OTEL dependencies. PR fix API deprecations & upgrade to latest recommendations. OTEL Go release notes - https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.15.0 Note - Refer OTEL Proposal [1] & PR [2] for breaking changes [1] - open-telemetry/opentelemetry-go#3995 [2] - open-telemetry/opentelemetry-go#4018 Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Resolves: #3995
Changes:
metric/instrument
intometric
metric/instrument
and the package itselfThese changes are proposed as they resolve the following:
metric/instrument
package only provides types and functionality called from themetric
packagemetric/instrument
to understand the full purpose and functionality ofmetric
This proposal has been discussed before12, why change it now?
Prior considerations were made before the
Meter
API was updated to be specification compliant. That update and the following cleanup removed the non-compliant instrument provider and the number scoped instrument packages. With those changes the instruments themselves are never meant to be created or used outside of the functionality provided bymetric
. It is a relic to keep the partition of themetric/instrument
package when all of its use is now inmetric
.Footnotes
https://github.com/open-telemetry/opentelemetry-go/issues/2653 ↩
https://github.com/open-telemetry/opentelemetry-go/issues/2526 ↩