v1.2.0
版本发布时间: 2021-11-13 00:48:28
open-telemetry/opentelemetry-go最新发布版本:v1.30.0(2024-09-11 05:35:18)
Changed
- Metric SDK
export.ExportKind
,export.ExportKindSelector
types have been renamed toaggregation.Temporality
andaggregation.TemporalitySelector
respectively to keep in line with current specification and protocol along with built-in selectors (e.g.,aggregation.CumulativeTemporalitySelector
, ...). (#2274) - The Metric
Exporter
interface now requires aTemporalitySelector
method instead of anExportKindSelector
. (#2274) - Metrics API cleanup. The
metric/sdkapi
package has been created to relocate the API-to-SDK interface:- The following interface types simply moved from
metric
tometric/sdkapi
:Descriptor
,MeterImpl
,InstrumentImpl
,SyncImpl
,BoundSyncImpl
,AsyncImpl
,AsyncRunner
,AsyncSingleRunner
, andAsyncBatchRunner
- The following struct types moved and are replaced with type aliases, since they are exposed to the user:
Observation
,Measurement
. - The No-op implementations of sync and async instruments are no longer exported, new functions
sdkapi.NewNoopAsyncInstrument()
andsdkapi.NewNoopSyncInstrument()
are provided instead. (#2271)
- The following interface types simply moved from
- Update the SDK
BatchSpanProcessor
to export all queued spans whenForceFlush
is called. (#2080, #2335)
Added
- Add the
"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc".WithGRPCConn
option so the exporter can reuse an existing gRPC connection. (#2002) - Added a new
schema
module to help parse Schema Files in OTEP 0152 format. (#2267) - Added a new
MapCarrier
to thego.opentelemetry.io/otel/propagation
package to hold propagated coss-cutting concerns as amap[string]string
held in memory. (#2334)