v0.48.0 Beta
Images and binaries here: https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/v0.48.0
🛑 Breaking changes 🛑
- Remove deprecated
consumerhelper
package (#5028) - Remove pdata
InternalRep
deprecated funcs (#5018) - Remove service/defaultcomponents deprecated package (#5019)
- Remove deprecated UseOpenTelemetryForInternalMetrics (#5026)
- Change outcome of
pdata.Value.MapVal()
andpdata.Value.SliceVal()
functions misuse. In case of
type mismatch, they now return an invalid zero-initialized instance instead of a detached
collection (#5034) - OTLP JSON field changes following upgrade to OTLP v0.15.0:
- "instrumentationLibraryLogs" is now "scopeLogs"
- "instrumentationLibraryMetrics" is now "scopeMetrics"
- "instrumentationLibrarySpans" is now "scopeSpans"
- "instrumentationLibrary" is now "scope"
- AsString for pdata.Value now returns the JSON-encoded string of floats. (#4934)
🚩 Deprecations 🚩
- Move MapProvider to config, split providers in their own package (#5030)
- API related to
pdata.AttributeValue
is deprecated in favor ofpdata.Value
(#4978)pdata.AttributeValue
struct is deprecated in favor ofpdata.Value
pdata.AttributeValueType
type is deprecated in favor ofpdata.ValueType
pdata.AttributeValueType...
constants are deprecated in favor ofpdata.ValueType...
pdata.NewAttributeValue...
funcs are deprecated in favor ofpdata.NewValue...
- Deprecate featureflags.FlagValue.SetSlice, unnecessary public (#5053)
- Remove "Attribute" part from common pdata collections names (#5001)
- Deprecate
pdata.AttributeMap
struct in favor ofpdata.Map
- Deprecate
pdata.NewAttributeMap
func in favor ofpdata.NewMap
- Deprecate
pdata.NewAttributeMapFromMap
func in favor ofpdata.NewMapFromRaw
- Deprecate
pdata.AttributeValueSlice
struct in favor ofpdata.Slice
- Deprecate
pdata.NewAttributeValueSlice
func in favor ofpdata.NewSlice
- Deprecate
- Deprecate LogRecord.Name(), it was deprecated in the data model (#5054)
- Rename
Array
type ofpdata.Value
toSlice
(#5066)- Deprecate
pdata.AttributeValueTypeArray
type in favor ofpdata.ValueTypeSlice
- Deprecate
pdata.NewAttributeValueArray
func in favor ofpdata.NewValueSlice
- Deprecate
- Deprecate global flag in
featuregates
(#5060) - Deprecate last funcs/structs in componenthelper (#5069)
- Change structs in otlpgrpc to follow standard go encoding interfaces (#5062)
- Deprecate UnmarshalJSON[Traces|Metrics|Logs][Reques|Response] in favor of
UnmarshalJSON
. - Deprecate [Traces|Metrics|Logs][Reques|Response].Marshal in favor of
MarshalProto
. - Deprecate UnmarshalJSON[Traces|Metrics|Logs][Reques|Response] in favor of
UnmarshalProto
.
- Deprecate UnmarshalJSON[Traces|Metrics|Logs][Reques|Response] in favor of
- Deprecating following pdata methods/types following OTLP v0.15.0 upgrade (#5076):
- InstrumentationLibrary is now InstrumentationScope
- NewInstrumentationLibrary is now NewInstrumentationScope
- InstrumentationLibraryLogsSlice is now ScopeLogsSlice
- NewInstrumentationLibraryLogsSlice is now NewScopeLogsSlice
- InstrumentationLibraryLogs is now ScopeLogs
- NewInstrumentationLibraryLogs is now NewScopeLogs
- InstrumentationLibraryMetricsSlice is now ScopeMetricsSlice
- NewInstrumentationLibraryMetricsSlice is now NewScopeMetricsSlice
- InstrumentationLibraryMetrics is now ScopeMetrics
- NewInstrumentationLibraryMetrics is now NewScopeMetrics
- InstrumentationLibrarySpansSlice is now ScopeSpansSlice
- NewInstrumentationLibrarySpansSlice is now NewScopeSpansSlice
- InstrumentationLibrarySpans is now ScopeSpans
- NewInstrumentationLibrarySpans is now NewScopeSpans
💡 Enhancements 💡
- Add semconv definitions for v1.9.0 (#5090)
- Change outcome of
pdata.Metric.<Gauge|Sum|Histogram|ExponentialHistogram>()
functions misuse.
In case of type mismatch, they don't panic right away but return an invalid zero-initialized
instance for consistency with other OneOf field accessors (#5035) - Update OTLP to v0.15.0 (#5064)
- Adding support for transition from older versions of OTLP to OTLP v0.15.0 (#5085)