Images and binaries here: https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/v0.61.0
🛑 Breaking changes 🛑
- Change
ptrace.Span[Link]?.TraceState
signature to matchptrace.Span[Link]?.TraceStateStruct
(#6085) - Delete deprecated
pmetric.NewMetricDataPointFlagsImmutable
func. (#6097) - Delete deprecated
pmetric.*DataPoint.[Set]FlagsImmutable()
funcs. (#6097) - Delete deprecated
config.Unmarshalable
interface. (#6084) - Delete deprecated
p[metric|log|trace].MarshalerSizer
interfaces (#6083) - Delete deprecated
pcommon.Map.Insert*
funcs. (#6088) - Delete deprecated
pcommon.Map.Upsert*
funcs. (#6088) - Delete deprecated
pcommon.Map.Update*
funcs. (#6088) - Change
pcommon.NewValueBytes
signature to matchpcommon.NewValueBytesEmpty
. (#6088) - Delete deprecated
pcommon.Empty[Trace|Span]ID
. (#6098) - Delete deprecated
pcommon.[Trace|Span]ID.Bytes()
. (#6098) - Delete deprecated
pcommon.New[Trace|Span]ID()
. (#6098) - Delete deprecated
pcommon.Value.SetBytesVal
. (#6088) - Delete deprecated
pmetric.Metric.SetDataType
. (#6095) - Delete deprecated
plog.LogRecord.[Set]FlagStruct
funcs. (#6100) - Delete deprecated
pcommon.ImmutableByteSlice
andpcommon.NewImmutableByteSlice
. (#6107) - Delete deprecated
pcommon.ImmutableFloat64Slice
andpcommon.NewImmutableFloat64Slice
. (#6107) - Delete deprecated
pcommon.ImmutableUInt64Slice
andpcommon.NewImmutableUInt64Slice
. (#6107) - Delete deprecated
*DataPoint.SetBucketCounts
and*DataPoint.SetExplicitBounds
. (#6108)
🚩 Deprecations 🚩
- Deprecate
go.opentelemetry.io/collector/service/featuregate
in favor ofgo.opentelemetry.io/collector/featuregate
. (#6094) - Deprecate
pmetric.OptionalType
, unused enum type. (#6096) - Deprecate
ptrace.Span[Link]?.TraceStateStruct
in favor ofptrace.Span[Link]?.TraceState
(#6085) - Deprecate
pcommon.NewValueBytesEmpty
in favor ofpcommon.NewValueBytes
that now has the same signature. (#6105) - Deprecate
pmetric.MetricDataType
and related constants in favor ofpmetric.MetricType
. (#6127) - Deprecate
pmetric.Metric.DataType()
in favor ofpmetric.Metric.Type()
. (#6127) - Deprecate
pmetric.NumberDataPoint.[Set]?[Int|Double]Val()
in favor ofpmetric.NumberDataPoint.[Set]?[Int|Double]Value()
. (#6134) - Deprecate
pmetric.Exemplar.[Set]?[Int|Double]Val()
in favor ofpmetric.Exemplar.[Set]?[Int|Double]Value()
. (#6134) - Deprecate
p[metric|log|trace]otlp.[Client|Server]
in favor ofp[metric|log|trace]otlp.GRPC[Client|Server]
(#6165) - Deprecate pdata Clone methods in favor of CopyTo for consistency with other pdata structs (#6164)
pmetric.Metrics.Clone
is deprecated in favor ofpmetric.Metrics.CopyTo
ptrace.Traces.Clone
is deprecated in favor ofpmetric.Traces.CopyTo
plog.Logs.Clone
is deprecated in favor ofplogs.Logs.CopyTo
- Rename all
pcommon.Value
getter/setter methods by removingVal
suffix. (#6092)- Old methods with
Val
suffix are deprecated. StringVal
andSetStringVal
are deprecated in favor ofStr
andSetStr
to avoid implementingfmt.Stringer
interface.- Therefore,
ValueTypeString
is deprecated in favour ofValueTypeStr
for consistency.
- Old methods with
💡 Enhancements 💡
- Add AppendEmpty and EnsureCapacity method to primitive pdata slices (#6060)
- Expose
AsRaw
andFromRaw
pcommon.Value
methods (#6090) - Convert
ValueTypeBytes
attributes in logging exporter (#6153) - Updated how
telemetryInitializer
is created so it's instanced per Collector instance rather than global to the process (#6138)