Skip to content

Upgrading go.opentelemetry.io/otel 0.3 to 0.4

Unknownv0.3.0 → v0.4.3

Fetching 4 releases from GitHub…0 / 4
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.

  • removed: method SpanContext.SpanIDString() string
  • removed: method SpanContext.TraceIDString() string
  • added: method SpanID.String() string
  • added: method TraceID.String() string
  • added: func DefaultEncoder() Encoder
  • added: func EmptySet() *Set
  • added: func NewEncoderID() EncoderID
  • added: func NewSet(...core.KeyValue) Set
  • added: func NewSetWithSortable([]core.KeyValue, *Sortable) Set
  • added: method Distinct.Valid() bool
  • added: method Encoder.Encode(Iterator) string
  • added: method Encoder.ID() EncoderID
  • added: method EncoderID.Valid() bool
  • added: method Iterator.Attribute() core.KeyValue
  • added: method Iterator.IndexedAttribute() (int, core.KeyValue)
  • added: method Iterator.IndexedLabel() (int, core.KeyValue)
  • added: method Iterator.Label() core.KeyValue
  • added: method Iterator.Len() int
  • added: method Iterator.Next() bool
  • added: method Iterator.ToSlice() []core.KeyValue
  • added: method Set.Encoded(Encoder) string
  • added: method Set.Equals(*Set) bool
  • added: method Set.Equivalent() Distinct
  • added: method Set.Get(int) (core.KeyValue, bool)
  • added: method Set.HasValue(core.Key) bool
  • added: method Set.Iter() Iterator
  • added: method Set.Len() int
  • added: method Set.MarshalJSON() ([]byte, error)
  • added: method Set.ToSlice() []core.KeyValue
  • added: method Set.Value(core.Key) (core.Value, bool)
  • added: method Sortable.Len() int
  • added: method Sortable.Less(int, int) bool
  • added: method Sortable.Swap(int, int)
  • added: type Distinct: struct
  • added: type Encoder: interface
  • added: type EncoderID: struct
  • added: type Iterator: struct
  • added: type Set: struct
  • added: type Sortable: []core.KeyValue
  • removed: field Config.Keys: []core.Key
  • removed: field Config.Resource: resource.Resource
  • removed: func UnwrapImpl(Meter) (MeterImpl, bool)
  • removed: func WithKeys(...core.Key) Option
  • removed: func WithResource(resource.Resource) Option
  • removed: method Descriptor.Keys() []core.Key
  • removed: method Descriptor.Resource() resource.Resource
  • removed: method LabelSetDelegate.Delegate() LabelSet
  • removed: method Meter.Labels(...core.KeyValue) LabelSet
  • removed: method MeterImpl.Labels(...core.KeyValue) LabelSet
  • removed: method NoopMeter.Labels(...core.KeyValue) LabelSet
  • removed: method Resourcer.Resource() resource.Resource
  • removed: type LabelSet: interface
  • removed: type LabelSetDelegate: interface
  • removed: type Resourcer: interface
  • changed: func WrapMeterImpl(MeterImpl) Meter → func WrapMeterImpl(MeterImpl, string) Meter
  • changed: method Float64Counter.Add(context.Context, float64, LabelSet) → method Float64Counter.Add(context.Context, float64, ...core.KeyValue)
  • changed: method Float64Counter.Bind(LabelSet) (BoundFloat64Counter) → method Float64Counter.Bind(...core.KeyValue) (BoundFloat64Counter)
  • changed: method Float64Measure.Bind(LabelSet) (BoundFloat64Measure) → method Float64Measure.Bind(...core.KeyValue) (BoundFloat64Measure)
  • changed: method Float64Measure.Record(context.Context, float64, LabelSet) → method Float64Measure.Record(context.Context, float64, ...core.KeyValue)
  • changed: method Float64ObserverResult.Observe(float64, LabelSet) → method Float64ObserverResult.Observe(float64, ...core.KeyValue)
  • changed: method Int64Counter.Add(context.Context, int64, LabelSet) → method Int64Counter.Add(context.Context, int64, ...core.KeyValue)
  • changed: method Int64Counter.Bind(LabelSet) (BoundInt64Counter) → method Int64Counter.Bind(...core.KeyValue) (BoundInt64Counter)
  • changed: method Int64Measure.Bind(LabelSet) (BoundInt64Measure) → method Int64Measure.Bind(...core.KeyValue) (BoundInt64Measure)
  • changed: method Int64Measure.Record(context.Context, int64, LabelSet) → method Int64Measure.Record(context.Context, int64, ...core.KeyValue)
  • changed: method Int64ObserverResult.Observe(int64, LabelSet) → method Int64ObserverResult.Observe(int64, ...core.KeyValue)
  • changed: method Meter.RecordBatch(context.Context, LabelSet, ...Measurement) → method Meter.RecordBatch(context.Context, []core.KeyValue, ...Measurement)
  • changed: method MeterImpl.NewAsyncInstrument(Descriptor, func(func(core.Number, LabelSet))) (AsyncImpl, error) → method MeterImpl.NewAsyncInstrument(Descriptor, func(func(core.Number, []core.KeyValue))) (AsyncImpl, error)
  • changed: method MeterImpl.RecordBatch(context.Context, LabelSet, ...Measurement) → method MeterImpl.RecordBatch(context.Context, []core.KeyValue, ...Measurement)
  • changed: method NoopMeter.RecordBatch(context.Context, LabelSet, ...Measurement) → method NoopMeter.RecordBatch(context.Context, []core.KeyValue, ...Measurement)
  • changed: method NoopSync.Bind(LabelSet) BoundSyncImpl → method NoopSync.Bind([]core.KeyValue) BoundSyncImpl
  • changed: method NoopSync.RecordOne(context.Context, core.Number, LabelSet) → method NoopSync.RecordOne(context.Context, core.Number, []core.KeyValue)
  • changed: method SyncImpl.Bind(LabelSet) BoundSyncImpl → method SyncImpl.Bind([]core.KeyValue) BoundSyncImpl
  • changed: method SyncImpl.RecordOne(context.Context, core.Number, LabelSet) → method SyncImpl.RecordOne(context.Context, core.Number, []core.KeyValue)
  • added: field Config.LibraryName: string
  • added: func WithLibraryName(string) Option
  • added: method Descriptor.LibraryName() string
  • added: func Compatible(metric.Descriptor, metric.Descriptor) bool
  • added: func NewMetricKindMismatchError(metric.Descriptor) error
  • added: func NewUniqueInstrumentMeterImpl(metric.MeterImpl) metric.MeterImpl
  • added: var ErrMetricKindMismatch
  • removed: field Exporter.Exporter: embedded *statsd.Exporter
  • removed: field Exporter.LabelEncoder: embedded *statsd.LabelEncoder
  • removed: field Exporter.ReencodedLabelsCount: int
  • removed: func InstallNewPipeline(Config) (*push.Controller, error)
  • removed: func NewExportPipeline(Config, time.Duration) (*push.Controller, error)
  • removed: func NewRawExporter(Config) (*Exporter, error)
  • removed: method Exporter.AppendName(export.Record, *bytes.Buffer)
  • removed: method Exporter.AppendTags(export.Record, *bytes.Buffer)
  • removed: type Config = statsd.Config
  • removed: type Exporter: struct
  • changed: func InstallNewPipeline(Config) (*push.Controller, error) → func InstallNewPipeline(Config, ...push.Option) (*push.Controller, error)
  • changed: func NewExportPipeline(Config, time.Duration) (*push.Controller, error) → func NewExportPipeline(Config, time.Duration, ...push.Option) (*push.Controller, error)
  • changed: method Exporter.Export(context.Context, export.CheckpointSet) error → method Exporter.Export(context.Context, *resource.Resource, export.CheckpointSet) error
  • added: field Config.LabelEncoder: label.Encoder
  • changed: func NewCheckpointSet(export.LabelEncoder) *CheckpointSet → func NewCheckpointSet() *CheckpointSet
  • added: method CheckpointSet.AddHistogramMeasure(*metric.Descriptor, []core.Number, float64, ...core.KeyValue)
  • added: func StreamClientInterceptor(trace.Tracer) grpc.StreamClientInterceptor
  • added: func StreamServerInterceptor(trace.Tracer) grpc.StreamServerInterceptor
  • added: func UnaryClientInterceptor(trace.Tracer) grpc.UnaryClientInterceptor
  • added: func UnaryServerInterceptor(trace.Tracer) grpc.UnaryServerInterceptor
  • added: const RemoteAddrKey
  • added: func WithSpanNameFormatter(func(operation string, r *http.Request) string) Option
  • removed: func IteratorToSlice(LabelIterator) []core.KeyValue
  • removed: func NewLabelIterator(LabelStorage) LabelIterator
  • removed: func NewLabels(LabelStorage, string, LabelEncoder) Labels
  • removed: method LabelEncoder.Encode(LabelIterator) string
  • removed: method LabelIterator.IndexedLabel() (int, core.KeyValue)
  • removed: method LabelIterator.Label() core.KeyValue
  • removed: method LabelIterator.Len() int
  • removed: method LabelIterator.Next() bool
  • removed: method LabelSlice.GetLabel(int) core.KeyValue
  • removed: method LabelSlice.Iter() LabelIterator
  • removed: method LabelSlice.NumLabels() int
  • removed: method LabelStorage.GetLabel(int) core.KeyValue
  • removed: method LabelStorage.NumLabels() int
  • removed: method Labels.Encoded() string
  • removed: method Labels.Encoder() LabelEncoder
  • removed: method Labels.Iter() LabelIterator
  • removed: type LabelEncoder: interface
  • removed: type LabelIterator: struct
  • removed: type LabelSlice: []core.KeyValue
  • removed: type LabelStorage: interface
  • removed: type Labels: struct
  • changed: func NewRecord(*metric.Descriptor, Labels, Aggregator) Record → func NewRecord(*metric.Descriptor, *label.Set, Aggregator) Record
  • changed: method Exporter.Export(context.Context, CheckpointSet) error → method Exporter.Export(context.Context, *resource.Resource, CheckpointSet) error
  • changed: method Record.Labels() Labels → method Record.Labels() *label.Set
  • changed: type Histogram: interface → type Histogram: interface{Sum}
  • added: method Histogram.Sum() (core.Number, error)
  • removed: field Config.Resource: resource.Resource
  • removed: func NewDefaultLabelEncoder() export.LabelEncoder
  • removed: func WithResource(resource.Resource) Option
  • removed: method SDK.Labels(...core.KeyValue) api.LabelSet
  • removed: method SDK.Resource() resource.Resource
  • changed: func New(export.Batcher, export.LabelEncoder, ...Option) *SDK → func New(export.Batcher, ...Option) *SDK
  • changed: method SDK.NewAsyncInstrument(api.Descriptor, func(func(core.Number, api.LabelSet))) (api.AsyncImpl, error) → method SDK.NewAsyncInstrument(api.Descriptor, func(func(core.Number, []core.KeyValue))) (api.AsyncImpl, error)
  • changed: method SDK.RecordBatch(context.Context, api.LabelSet, ...api.Measurement) → method SDK.RecordBatch(context.Context, []core.KeyValue, ...api.Measurement)
  • added: func AtomicFieldOffsets() map[string]uintptr
  • removed: func New(export.AggregationSelector, export.LabelEncoder, bool) *Batcher
  • removed: method Batcher.AggregatorFor(*metric.Descriptor) export.Aggregator
  • removed: method Batcher.CheckpointSet() export.CheckpointSet
  • removed: method Batcher.FinishedCollection()
  • removed: method Batcher.Process(context.Context, export.Record) error
  • removed: type Batcher: struct
  • changed: func NewCounterRecord(*metric.Descriptor, export.Labels, int64) export.Record → func NewCounterRecord(*metric.Descriptor, *label.Set, int64) export.Record
  • changed: func NewLastValueRecord(*metric.Descriptor, export.Labels, int64) export.Record → func NewLastValueRecord(*metric.Descriptor, *label.Set, int64) export.Record
  • changed: method Encoder.Encode(export.LabelIterator) string → method Encoder.Encode(label.Iterator) string
  • changed: type Output: map[string]float64 → type Output: struct
  • added: field Output.Map: map[string]float64
  • added: func NewOutput(label.Encoder) Output
  • added: method Encoder.ID() label.EncoderID
  • changed: field Config.Resource: resource.Resource → field Config.Resource: *resource.Resource
  • changed: func WithResource(resource.Resource) Option → func WithResource(*resource.Resource) Option
  • added: func NewWithHistogramMeasure([]core.Number) export.AggregationSelector
  • changed: method Resource.Equal(Resource) bool → method Resource.Equal(*Resource) bool
  • added: func Empty() *Resource
  • added: method Resource.Encoded(label.Encoder) string
  • added: method Resource.Equivalent() label.Distinct
  • added: method Resource.Iter() label.Iterator
  • added: method Resource.Len() int
  • added: method Resource.MarshalJSON() ([]byte, error)
  • added: method Resource.String() string