v1.15.0-rc.2
版本发布时间: 2023-03-23 22:52:43
open-telemetry/opentelemetry-go最新发布版本:v1.30.0(2024-09-11 05:35:18)
This is a release candidate for the v1.15.0/v0.38.0 release. That release will include the v1
release of the OpenTelemetry Go metric API and will provide stability guarantees of that API. See our versioning policy for more information about these stability guarantees.
Added
- The
WithHostID
option togo.opentelemetry.io/otel/sdk/resource
. (#3812) - The
WithoutTimestamps
option togo.opentelemetry.io/otel/exporters/stdout/stdoutmetric
to sets all timestamps to zero. (#3828) - The new
Exemplar
type is added togo.opentelemetry.io/otel/sdk/metric/metricdata
. Both theDataPoint
andHistogramDataPoint
types from that package have a new field ofExemplars
containing the sampled exemplars for their timeseries. (#3849) - Configuration for each metric instrument in
go.opentelemetry.io/otel/sdk/metric/instrument
. (#3895) - The internal logging introduces a warning level verbosity equal to
V(1)
. (#3900)
Changed
- Optimize memory allocation when creation a new
Set
usingNewSet
orNewSetWithFiltered
ingo.opentelemetry.io/otel/attribute
. (#3832) - Optimize memory allocation when creation new metric instruments in
go.opentelemetry.io/otel/sdk/metric
. (#3832) - Avoid creating new objects on all calls to
WithDeferredSetup
andSkipContextSetup
in OpenTracing bridge. (#3833) - The
New
andDetect
functions fromgo.opentelemetry.io/otel/sdk/resource
return errors that wrap underlying errors instead of just containing the underlying error strings. (#3844) - Both the
Histogram
andHistogramDataPoint
are redefined with a generic argument of[N int64 | float64]
ingo.opentelemetry.io/otel/sdk/metric/metricdata
. (#3849) - The metric
Export
interface fromgo.opentelemetry.io/otel/sdk/metric
accepts a*ResourceMetrics
instead ofResourceMetrics
. (#3853) - Rename
Asynchronous
toObservable
ingo.opentelemetry.io/otel/metric/instrument
. (#3892) - Rename
Int64ObserverOption
toInt64ObservableOption
ingo.opentelemetry.io/otel/metric/instrument
. (#3895) - Rename
Float64ObserverOption
toFloat64ObservableOption
ingo.opentelemetry.io/otel/metric/instrument
. (#3895) - The internal logging changes the verbosity level of info to
V(4)
, the verbosity level of debug toV(8)
. (#3900)
Fixed
-
TracerProvider
consistently doesn't allow to register aSpanProcessor
after shutdown. (#3845)
Removed
- The deprecated
go.opentelemetry.io/otel/metric/global
package is removed. (#3829) - The unneeded
Synchronous
interface ingo.opentelemetry.io/otel/metric/instrument
was removed. (#3892) - The
Float64ObserverConfig
andNewFloat64ObserverConfig
ingo.opentelemetry.io/otel/sdk/metric/instrument
. Use the addedfloat64
instrument configuration instead. (#3895) - The
Int64ObserverConfig
andNewInt64ObserverConfig
ingo.opentelemetry.io/otel/sdk/metric/instrument
. Use the addedint64
instrument configuration instead. (#3895) - The
NewNoopMeter
function ingo.opentelemetry.io/otel/metric
, useNewMeterProvider().Meter("")
instead. (#3893)