v1.6.0
版本发布时间: 2022-03-24 05:31:57
open-telemetry/opentelemetry-go最新发布版本:v1.30.0(2024-09-11 05:35:18)
⚠️ Notice ⚠️
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
- Add metrics exponential histogram support.
New mapping functions have been made available in
sdk/metric/aggregator/exponential/mapping
for other OpenTelemetry projects to take dependencies on. (#2502) - Add Go 1.18 to our compatibility tests. (#2679)
- Allow configuring the Sampler with the
OTEL_TRACES_SAMPLER
andOTEL_TRACES_SAMPLER_ARG
environment variables. (#2305, #2517) - Add the
metric/global
for obtaining and setting the globalMeterProvider
. (#2660)
Changed
-
The metrics API has been significantly changed to match the revised OpenTelemetry specification. High-level changes include:
- Synchronous and asynchronous instruments are now handled by independent
InstrumentProvider
s. TheseInstrumentProvider
s are managed with aMeter
. - Synchronous and asynchronous instruments are grouped into their own packages based on value types.
- Asynchronous callbacks can now be registered with a
Meter
.
Be sure to check out the metric module documentation for more information on how to use the revised API. (#2587, #2660)
- Synchronous and asynchronous instruments are now handled by independent
Fixed
- Fallback to general attribute limits when span specific ones are not set in the environment. (#2675, #2677)