Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This update is a breaking change of the unstable Metrics API.
Code instrumented with the
go.opentelemetry.io/otel/metric
will need to be modified.Added
New mapping functions have been made available in
sdk/metric/aggregator/exponential/mapping
for other OpenTelemetry projects to take dependencies on. (Exponential Histogram mapping functions for public use #2502)OTEL_TRACES_SAMPLER
andOTEL_TRACES_SAMPLER_ARG
environment variables. (Support the OTEL_TRACES_SAMPLER* environment variables #2305, Allow setting the Sampler via environment variables #2517)metric/global
for obtaining and setting the globalMeterProvider
. (Adds metrics Global #2660)Changed
The metrics API has been significantly changed to match the revised OpenTelemetry specification.
High-level changes include:
InstrumentProvider
s.These
InstrumentProvider
s are manged aMeter
.Meter
.Be sure to check out the metric module documentation for more information on how to use the revised API. ([API EPIC 4/4] Fix tests and examples #2587, Adds metrics Global #2660)
Fixed