Skip to content

Upgrading go.opentelemetry.io/otel 0.11 to 0.12

Unknownv0.11.0 → v0.12.0

Fetching 1 release from GitHub…0 / 1
UnknownUpgrade verdict

DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.

  • DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
  • This page updates as the notes come in.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

Generated by DepDelta from published Go source. Not mixed with prose notes.

  • added: field MapUpdate.DropMultiK: []label.Key
  • added: field MapUpdate.DropSingleK: label.Key
  • added: field MapUpdate.MultiKV: []label.KeyValue
  • added: field MapUpdate.SingleKV: label.KeyValue
  • added: func ContextWithGetHook(context.Context, GetHookFunc) context.Context
  • added: func ContextWithMap(context.Context, Map) context.Context
  • added: func ContextWithNoHooks(context.Context) (context.Context, SetHookFunc, GetHookFunc)
  • added: func ContextWithSetHook(context.Context, SetHookFunc) context.Context
  • added: func DefaultHTTPPropagator() propagation.HTTPPropagator
  • added: func MapFromContext(context.Context) Map
  • added: func NewContext(context.Context, ...label.KeyValue) context.Context
  • added: func NewEmptyMap() Map
  • added: func NewMap(MapUpdate) Map
  • added: method Baggage.Extract(context.Context, propagation.HTTPSupplier) context.Context
  • added: method Baggage.GetAllKeys() []string
  • added: method Baggage.Inject(context.Context, propagation.HTTPSupplier)
  • added: method Map.Apply(MapUpdate) Map
  • added: method Map.Foreach(func(label.KeyValue) bool)
  • added: method Map.HasValue(label.Key) bool
  • added: method Map.Len() int
  • added: method Map.Value(label.Key) (label.Value, bool)
  • added: type Baggage: struct
  • added: type GetHookFunc: func(context.Context, Map) Map
  • added: type Map: struct
  • added: type MapUpdate: struct
  • added: type SetHookFunc: func(context.Context) context.Context
  • removed: field MapUpdate.DropMultiK: []label.Key
  • removed: field MapUpdate.DropSingleK: label.Key
  • removed: field MapUpdate.MultiKV: []label.KeyValue
  • removed: field MapUpdate.SingleKV: label.KeyValue
  • removed: func ContextWithGetHook(context.Context, GetHookFunc) context.Context
  • removed: func ContextWithMap(context.Context, Map) context.Context
  • removed: func ContextWithNoHooks(context.Context) (context.Context, SetHookFunc, GetHookFunc)
  • removed: func ContextWithSetHook(context.Context, SetHookFunc) context.Context
  • removed: func DefaultHTTPPropagator() propagation.HTTPPropagator
  • removed: func MapFromContext(context.Context) Map
  • removed: func NewContext(context.Context, ...label.KeyValue) context.Context
  • removed: func NewEmptyMap() Map
  • removed: func NewMap(MapUpdate) Map
  • removed: method CorrelationContext.Extract(context.Context, propagation.HTTPSupplier) context.Context
  • removed: method CorrelationContext.GetAllKeys() []string
  • removed: method CorrelationContext.Inject(context.Context, propagation.HTTPSupplier)
  • removed: method Map.Apply(MapUpdate) Map
  • removed: method Map.Foreach(func(label.KeyValue) bool)
  • removed: method Map.HasValue(label.Key) bool
  • removed: method Map.Len() int
  • removed: method Map.Value(label.Key) (label.Value, bool)
  • removed: type CorrelationContext: struct
  • removed: type GetHookFunc: func(context.Context, Map) Map
  • removed: type Map: struct
  • removed: type MapUpdate: struct
  • removed: type SetHookFunc: func(context.Context) context.Context
  • removed: func SetTraceProvider(trace.Provider)
  • removed: func TraceProvider() trace.Provider
  • changed: func MeterProvider() metric.Provider → func MeterProvider() metric.MeterProvider
  • changed: func SetMeterProvider(metric.Provider) → func SetMeterProvider(metric.MeterProvider)
  • added: func SetTracerProvider(trace.TracerProvider)
  • added: func TracerProvider() trace.TracerProvider
  • removed: func ConfigureInstrument([]InstrumentOption) InstrumentConfig
  • removed: func ConfigureMeter([]MeterOption) MeterConfig
  • removed: method NoopProvider.Meter(string, ...MeterOption) Meter
  • removed: method Provider.Meter(string, ...MeterOption) Meter
  • removed: type NoopProvider: struct
  • removed: type Provider: interface
  • added: func NewInstrumentConfig(...InstrumentOption) InstrumentConfig
  • added: func NewMeterConfig(...MeterOption) MeterConfig
  • added: method MeterProvider.Meter(string, ...MeterOption) Meter
  • added: method NoopMeterProvider.Meter(string, ...MeterOption) Meter
  • added: type MeterProvider: interface
  • added: type NoopMeterProvider: struct
  • added: field Async.Instrument: embedded Instrument
  • added: field Batch.Ctx: context.Context
  • added: field Batch.Labels: []label.KeyValue
  • added: field Batch.LibraryName: string
  • added: field Batch.Measurements: []Measurement
  • added: field Handle.Instrument: *Sync
  • added: field Handle.Labels: []label.KeyValue
  • added: field Measured.InstrumentationName: string
  • added: field Measured.InstrumentationVersion: string
  • added: field Measured.Labels: map[label.Key]label.Value
  • added: field Measured.Name: string
  • added: field Measured.Number: metric.Number
  • added: field Measurement.Instrument: apimetric.InstrumentImpl
  • added: field Measurement.Number: apimetric.Number
  • added: field MeterImpl.MeasurementBatches: []Batch
  • added: field Sync.Instrument: embedded Instrument
  • added: func AsStructs([]Batch) []Measured
  • added: func LabelsToMap(...label.KeyValue) map[label.Key]label.Value
  • added: func NewAsyncInstrumentState() *AsyncInstrumentState
  • added: func NewMeter() (*MeterImpl, apimetric.Meter)
  • added: func NewMeterProvider() (*MeterImpl, apimetric.MeterProvider)
  • added: func ResolveNumberByKind(*testing.T, metric.NumberKind, float64) metric.Number
  • added: method Async.Implementation() interface
  • added: method AsyncCollector.CollectAsync([]label.KeyValue, ...metric.Observation)
  • added: method AsyncInstrumentState.Instruments() []metric.AsyncImpl
  • added: method AsyncInstrumentState.Register(metric.AsyncImpl, metric.AsyncRunner)
  • added: method AsyncInstrumentState.Run(context.Context, AsyncCollector)
  • added: method Handle.RecordOne(context.Context, apimetric.Number)
  • added: method Handle.Unbind()
  • added: method Instrument.Descriptor() apimetric.Descriptor
  • added: method MeterImpl.CollectAsync([]label.KeyValue, ...metric.Observation)
  • added: method MeterImpl.NewAsyncInstrument(metric.Descriptor, metric.AsyncRunner) (apimetric.AsyncImpl, error)
  • added: method MeterImpl.NewSyncInstrument(metric.Descriptor) (apimetric.SyncImpl, error)
  • added: method MeterImpl.RecordBatch(context.Context, []label.KeyValue, ...apimetric.Measurement)
  • added: method MeterImpl.RunAsyncInstruments()
  • added: method Sync.Bind([]label.KeyValue) apimetric.BoundSyncImpl
  • added: method Sync.Implementation() interface
  • added: method Sync.RecordOne(context.Context, apimetric.Number, []label.KeyValue)
  • added: type Async: struct
  • added: type AsyncCollector: interface
  • added: type AsyncInstrumentState: struct
  • added: type Batch: struct
  • added: type Handle: struct
  • added: type Instrument: struct
  • added: type Measured: struct
  • added: type Measurement: struct
  • added: type MeterImpl: struct
  • added: type Sync: struct
  • added: var ErrInvalidAsyncRunner
  • removed: func NewProvider(metric.MeterImpl) *Provider
  • removed: method Provider.Meter(string, ...metric.MeterOption) metric.Meter
  • removed: type Provider: struct
  • added: func NewMeterProvider(metric.MeterImpl) *MeterProvider
  • added: method MeterProvider.Meter(string, ...metric.MeterOption) metric.Meter
  • added: type MeterProvider: struct
  • removed: const B3MultipleHeader: B3Encoding
  • removed: const B3SingleHeader: B3Encoding
  • removed: const B3Unspecified: B3Encoding
  • removed: field B3.InjectEncoding: B3Encoding
  • removed: field EndConfig.EndTime: time.Time
  • removed: field StartConfig.Attributes: []label.KeyValue
  • removed: field StartConfig.Links: []Link
  • removed: field StartConfig.NewRoot: bool
  • removed: field StartConfig.Record: bool
  • removed: field StartConfig.SpanKind: SpanKind
  • removed: field StartConfig.StartTime: time.Time
  • removed: func DefaultHTTPPropagator() propagation.HTTPPropagator
  • removed: func LinkedTo(SpanContext, ...label.KeyValue) StartOption
  • removed: func WithEndTime(time.Time) EndOption
  • removed: func WithStartTime(time.Time) StartOption
  • removed: method B3.Extract(context.Context, propagation.HTTPSupplier) context.Context
  • removed: method B3.GetAllKeys() []string
  • removed: method B3.Inject(context.Context, propagation.HTTPSupplier)
  • removed: method NoopProvider.Tracer(string, ...TracerOption) Tracer
  • removed: method NoopSpan.AddEvent(context.Context, string, ...label.KeyValue)
  • removed: method NoopSpan.AddEventWithTimestamp(context.Context, time.Time, string, ...label.KeyValue)
  • removed: method NoopSpan.End(...EndOption)
  • removed: method NoopSpan.IsRecording() bool
  • removed: method NoopSpan.RecordError(context.Context, error, ...ErrorOption)
  • removed: method NoopSpan.SetAttribute(string, interface{})
  • removed: method NoopSpan.SetAttributes(...label.KeyValue)
  • removed: method NoopSpan.SetError(bool)
  • removed: method NoopSpan.SetName(string)
  • removed: method NoopSpan.SetStatus(codes.Code, string)
  • removed: method NoopSpan.SpanContext() SpanContext
  • removed: method NoopSpan.Tracer() Tracer
  • removed: method NoopTracer.Start(context.Context, string, ...StartOption) (context.Context, Span)
  • removed: method Provider.Tracer(string, ...TracerOption) Tracer
  • removed: method TraceContext.Extract(context.Context, propagation.HTTPSupplier) context.Context
  • removed: method TraceContext.GetAllKeys() []string
  • removed: method TraceContext.Inject(context.Context, propagation.HTTPSupplier)
  • removed: type B3: struct
  • removed: type B3Encoding: uint8
  • removed: type EndConfig: struct
  • removed: type EndOption: func(*EndConfig)
  • removed: type NoopProvider: struct
  • removed: type NoopSpan: struct
  • removed: type NoopTracer: struct
  • removed: type Provider: interface
  • removed: type StartConfig: struct
  • removed: type StartOption: func(*StartConfig)
  • removed: type TraceContext: struct
  • changed: func WithAttributes(...label.KeyValue) StartOption → func WithAttributes(...label.KeyValue) SpanOption
  • changed: func WithNewRoot() StartOption → func WithNewRoot() SpanOption
  • changed: func WithRecord() StartOption → func WithRecord() SpanOption
  • changed: func WithSpanKind(SpanKind) StartOption → func WithSpanKind(SpanKind) SpanOption
  • changed: method Span.End(...EndOption) → method Span.End(...SpanOption)
  • changed: method Tracer.Start(context.Context, string, ...StartOption) (context.Context, Span) → method Tracer.Start(context.Context, string, ...SpanOption) (context.Context, Span)
  • changed: type TracerOption: func(*TracerConfig) → type TracerOption: interface
  • added: field SpanConfig.Attributes: []label.KeyValue
  • added: field SpanConfig.Links: []Link
  • added: field SpanConfig.NewRoot: bool
  • added: field SpanConfig.Record: bool
  • added: field SpanConfig.SpanKind: SpanKind
  • added: field SpanConfig.Timestamp: time.Time
  • added: func NewSpanConfig(...SpanOption) *SpanConfig
  • added: func NewTracerConfig(...TracerOption) *TracerConfig
  • added: func NoopTracerProvider() TracerProvider
  • added: func WithLinks(...Link) SpanOption
  • added: func WithTimestamp(time.Time) SpanOption
  • added: method SpanContext.IsDebug() bool
  • added: method SpanContext.IsDeferred() bool
  • added: method SpanOption.Apply(*SpanConfig)
  • added: method TracerOption.Apply(*TracerConfig)
  • added: method TracerProvider.Tracer(string, ...TracerOption) Tracer
  • added: type SpanConfig: struct
  • added: type SpanOption: interface
  • added: type TracerProvider: interface
  • removed: func NewProvider(...Option) *Provider
  • removed: method Provider.Tracer(string, ...trace.TracerOption) trace.Tracer
  • removed: type Provider: struct
  • changed: method Span.End(...trace.EndOption) → method Span.End(...trace.SpanOption)
  • changed: method Tracer.Start(context.Context, string, ...trace.StartOption) (context.Context, trace.Span) → method Tracer.Start(context.Context, string, ...trace.SpanOption) (context.Context, trace.Span)
  • added: field MockSpan.Name: string
  • added: field MockSpan.Status: codes.Code
  • added: field MockSpan.StatusMsg: string
  • added: field MockTracer.OnSpanStarted: func(span *MockSpan)
  • added: field MockTracer.Sampled: bool
  • added: field MockTracer.StartSpanID: *uint64
  • added: func NewTracerProvider(...Option) *TracerProvider
  • added: method MockSpan.AddEvent(context.Context, string, ...label.KeyValue)
  • added: method MockSpan.AddEventWithTimestamp(context.Context, time.Time, string, ...label.KeyValue)
  • added: method MockSpan.End(...apitrace.SpanOption)
  • added: method MockSpan.IsRecording() bool
  • added: method MockSpan.RecordError(context.Context, error, ...apitrace.ErrorOption)
  • added: method MockSpan.SetAttribute(string, interface{})
  • added: method MockSpan.SetAttributes(...label.KeyValue)
  • added: method MockSpan.SetError(bool)
  • added: method MockSpan.SetName(string)
  • added: method MockSpan.SetStatus(codes.Code, string)
  • added: method MockSpan.SpanContext() apitrace.SpanContext
  • added: method MockSpan.Tracer() apitrace.Tracer
  • added: method MockTracer.Start(context.Context, string, ...apitrace.SpanOption) (context.Context, apitrace.Span)
  • added: method TracerProvider.Tracer(string, ...trace.TracerOption) trace.Tracer
  • added: type MockSpan: struct
  • added: type MockTracer: struct
  • added: type TracerProvider: struct
  • removed: const Bytes: Unit
  • removed: const Dimensionless: Unit
  • removed: const Milliseconds: Unit
  • removed: type Unit: string
  • added: func DefaultHTTPPropagator() propagation.HTTPPropagator
  • added: method TraceContext.Extract(context.Context, propagation.HTTPSupplier) context.Context
  • added: method TraceContext.GetAllKeys() []string
  • added: method TraceContext.Inject(context.Context, propagation.HTTPSupplier)
  • added: type TraceContext: struct
  • removed: const HTTPStatusTextKey
  • added: const K8SContainerNameKey
  • added: const K8SCronJobNameKey
  • added: const K8SCronJobUIDKey
  • added: const K8SDaemonSetNameKey
  • added: const K8SDaemonSetUIDKey
  • added: const K8SDeploymentUIDKey
  • added: const K8SJobNameKey
  • added: const K8SJobUIDKey
  • added: const K8SPodUIDKey
  • added: const K8SReplicaSetNameKey
  • added: const K8SReplicaSetUIDKey
  • added: const K8SStatefulSetNameKey
  • added: const K8SStatefulSetUIDKey
  • added: const Bytes: Unit
  • added: const Dimensionless: Unit
  • added: const Milliseconds: Unit
  • added: type Unit: string