Releases: open-telemetry/opentelemetry-collector
Releases · open-telemetry/opentelemetry-collector
v0.53.0
Images and binaries here: https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/v0.53.0
🛑 Breaking changes 🛑
- Remove deprecated
componenterror
package. (#5420) - Remove deprecated
config.MapConverterFunc
. (#5419) - Remove
AddCollectorVersionTag
, enabled for long time already. (#5471)
🚩 Deprecations 🚩
- Move
config.Map
to its own packageconfmap
which does not depend on any component concept (#5237)config.Map
->confmap.ConfMap
config.MapProvider
->confmap.Provider
config.Received
->confmap.Received
config.NewReceivedFromMap
->confmap.NewReceived
config.CloseFunc
->confmap.CloseFunc
config.ChangeEvent
->confmap.ChangeEvent
config.MapConverter
->confmap.Converter
- Package
envmapprovider
->envprovider
- Package
filemapprovider
->fileprovider
- Package
yamlmapprovider
->yamlprovider
- Package
expandmapconverter
->expandconverter
- Package
filemapprovider
->fileprovider
- Package
overwritepropertiesmapconverter
->overwritepropertiesconverter
- Deprecate
component.ExtensionDefaultConfigFunc
in favor ofcomponent.ExtensionCreateDefaultConfigFunc
(#5451) - Deprecate
confmap.Received.AsMap
in favor ofconfmap.Received.AsConf
(#5465) - Deprecate
confmap.Conf.Set
, not used anywhere for the moment (#5485)
💡 Enhancements 💡
- Move
service.mapResolver
toconfmap.Resolver
(#5444) - Add
linux-arm
architecture to cross build tests in CI (#5472)
🧰 Bug fixes 🧰
v0.52.0
Images and binaries here: https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/v0.52.0
🛑 Breaking changes 🛑
- Remove
configunmarshaler.Unmarshaler
interface, per deprecation comment (#5348) - Remove deprecated pdata funcs/structs from v0.50.0 (#5345)
- Remove deprecated pdata getters and setters of primitive slice values:
Value.BytesVal
,Value.SetBytesVal
,
Value.UpdateBytes
,Value.InsertBytes
,Value.UpsertBytes
,<HistogramDataPoint|Buckets>.BucketCounts
,
<HistogramDataPoint|Buckets>.SetBucketCounts
,HistogramDataPoint.ExplicitBounds
,
HistogramDataPoint.SetExplicitBounds
(#5347) - Remove deprecated featuregate funcs/structs from v0.50.0 (#5346)
- Remove access to deprecated members of the config.Retrieved struct (#5363)
- Replace usage of
config.MapConverterFunc
withconfig.MapConverter
(#5382)
🚩 Deprecations 🚩
- Deprecate
config.Config
andconfig.Service
, useservice.Config*
(#4608) - Deprecate
componenterror
package, move everything tocomponent
(#5383) pcommon.Value.NewValueBytes
is deprecated in favor ofValue.NewValueMBytes
in preparation of migration to
immutable slices (#5367)
💡 Enhancements 💡
v0.51.0
Images and binaries here: https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/v0.51.0
🛑 Breaking changes 🛑
- Remove deprecated model module, everything is available in
pdata
andsemconv
. (#5281)- Old versions of the module are still available, but no new versions will be released.
- Remove deprecated LogRecord.Name field. (#5202)
🚩 Deprecations 🚩
- In preparation of migration to immutable slices for primitive type items, the following methods are renamed (#5344)
Value.BytesVal
func is deprecated in favor ofValue.MBytesVal
.Value.SetBytesVal
func is deprecated in favor ofValue.SetMBytesVal
.Value.UpdateBytes
func is deprecated in favor ofValue.UpdateMBytes
.Value.InsertBytes
func is deprecated in favor ofValue.InsertMBytes
.Value.UpsertBytes
func is deprecated in favor ofValue.UpsertMBytes
.<HistogramDataPoint|Buckets>.BucketCounts
funcs are deprecated in favor of
<HistogramDataPoint|Buckets>.MBucketCounts
.<HistogramDataPoint|Buckets>.SetBucketCounts
funcs are deprecated in favor of
<HistogramDataPoint|Buckets>.SetMBucketCounts
.HistogramDataPoint.ExplicitBounds
func is deprecated in favor ofHistogramDataPoint.MExplicitBounds
.HistogramDataPoint.SetExplicitBounds
func is deprecated in favor ofHistogramDataPoint.SetMExplicitBounds
.
💡 Enhancements 💡
pdata
: Exposepcommon.NewSliceFromRaw
andpcommon.Slice.AsRaw
functions (#5311)
🧰 Bug fixes 🧰
- Fix Windows Event Logs ignoring user-specified logging options (#5298)
v0.50.0
Images and binaries here: https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/v0.50.0
🛑 Breaking changes 🛑
- Remove pdata deprecated funcs from 2 versions (v0.48.0) ago. (#5219)
- Remove non pdata deprecated funcs/structs (#5220)
pmetric.Exemplar.ValueType()
now returns new typeExemplarValueType
(#5233)
🚩 Deprecations 🚩
- Deprecate
configunmarshaler
package, move it to internal (#5151) - Deprecate all API in
model/semconv
. The package is moved to a newsemcomv
module (#5196) - Deprecate access to
config.Retrieved
fields, use the newly added funcs to interact with the internal fields (#5198) - Deprecate
p<signal>otlp.Request.Set<Logs|Metrics|Traces>
(#5234)plogotlp.Request.SetLogs
func is deprecated in favor ofplogotlp.NewRequestFromLogs
pmetricotlp.Request.SetMetrics
func is deprecated in favor ofpmetricotlp.NewRequestFromMetrics
ptraceotlp.Request.SetTraces
func is deprecated in favor ofptraceotlp.NewRequestFromTraces
pmetric.NumberDataPoint.ValueType()
now returns new typeNumberDataPointValueType
(#5233)pmetric.MetricValueType
is deprecated in favor ofNumberDataPointValueType
pmetric.MetricValueTypeNone
is deprecated in favor ofNumberDataPointValueTypeNone
pmetric.MetricValueTypeInt
is deprecated in favor ofNumberDataPointValueTypeInt
pmetric.MetricValueTypeDouble
is deprecated in favor ofNumberDataPointValueTypeDouble
- Deprecate
plog.LogRecord.SetName()
function (#5230) - Deprecate global
featuregate
funcs in favor ofGetRegistry
and a publicRegistry
type (#5160)
💡 Enhancements 💡
- Extend config.Map.Unmarshal hook to check map key string to any TextUnmarshaler not only ComponentID (#5244)
- Collector will no longer print error with stack trace when the collector is shutdown due to a context cancel. (#5258)
🧰 Bug fixes 🧰
- Fix translation from otlp.Request to pdata representation, changes to the returned pdata not all reflected to the otlp.Request (#5197)
exporterhelper
now properly consumes any remaining items on stop (#5203)pdata
: Fix copying ofValue
withValueTypeBytes
type (#5267)pdata
: Fix copying of metric fields of primitive items slice type (#5271)
v0.49.0
v0.49.0 Beta
Images and binaries here: https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/v0.49.0
🛑 Breaking changes 🛑
- Remove deprecated structs/funcs from previous versions (#5131)
- Do not set TraceProvider to global otel (#5138)
- Remove deprecated funcs from otlpgrpc (#5144)
- Add Scheme to MapProvider interface (#5068)
- Do not set MeterProvider to global otel (#5146)
- Make
InstrumentationLibrary<signal>ToScope
helper functions unexported (#5164) - Remove Log's "ShortName" from logging exporter output (#5172)
🚩 Deprecations 🚩
- All pdata related APIs from model (model/pdata, model/otlp and model/otlpgrpc) are deprecated in
favor of packages in the new pdata module separated by telemetry signal type (#5168)model/pdata
,model/otlp
->pdata/pcommon
,pdata/plog
,pdata/pmetric
,pdata/ptrace
model/otlpgrpc
->pdata/plog/plogotlp
,pdata/pmetric/pmetricotlp
,pdata/ptrace/ptraceotlp
- Deprecate configmapprovider package, replace with mapconverter (#5167)
- Deprecate
service.MustNewConfigProvider
andservice.MustNewDefaultConfigProvider
in favor ofservice.NewConfigProvider
(#4936)
💡 Enhancements 💡
- OTLP HTTP receiver will use HTTP/2 over TLS if client supports it (#5109)
- Add
ObservedTimestamp
field topdata.LogRecord
(#5171)
🧰 Bug fixes 🧰
- Setup the correct meter provider if telemetry.useOtelForInternalMetrics featuregate enabled (#5146)
- Fix pdata.Value.asRaw() to correctly return elements of Slice and Map type (#5153)
- Update pdata.Slice.asRaw() to return raw representation of Slice and Map elements (#5157)
- The codepath through the OTLP receiver for gRPC was not translating the InstrumentationLibrary* to Scope* (#5189)
v0.48.0
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)
🧰 Bug fixes 🧰
v0.47.0
v0.47.0 Beta
Images and binaries here: https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/v0.47.0
🛑 Breaking changes 🛑
- Remove
Type
funcs in pdata (#4933) - pdata: deprecate funcs working with InternalRep (#4957)
- Remove all deprecated funcs/structs from v0.46.0 (#4995)
🚩 Deprecations 🚩
- Deprecate
pdata.AttributeMap.Delete
in favor ofpdata.AttributeMap.Remove
(#4914) - Deprecate consumerhelper, move helpers to consumer (#5006)
💡 Enhancements 💡
- Add
pdata.AttributeMap.RemoveIf
, which is a more performant way to remove multiple keys (#4914) - Add
pipeline
key with pipeline identifier to processor loggers (#4968) - Add a new yaml provider, allows providing yaml bytes (#4998)
🧰 Bug fixes 🧰
v0.46.0
v0.46.0 Beta
Images and binaries here: https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/v0.46.0
🛑 Breaking changes 🛑
- Deprecated funcs
config.DefaultConfig
,confighttp.DefaultHTTPSettings
,exporterhelper.DefaultTimeoutSettings
,
exporthelper.DefaultQueueSettings
,exporterhelper.DefaultRetrySettings
,testcomponents.DefaultFactories
, and
scraperhelper.DefaultScraperControllerSettings
in favour for theirNewDefault
method to adhere to contribution guidelines (#4865) - Deprecated funcs
componenthelper.StartFunc
,componenthelper.ShutdownFunc
in favour ofcomponent.StartFunc
andcomponent.ShutdownFunc
(#4803) - Move helpers from extensionhelper to component (#4805)
- Deprecated
extensionhelper.CreateDefaultConfig
in favour ofcomponent.ExtensionDefaultConfigFunc
- Deprecated
extensionhelper.CreateServiceExtension
in favour ofcomponent.CreateExtensionFunc
- Deprecated
extensionhelper.NewFactory
in favour ofcomponent.NewExtensionFactory
- Deprecated
- Move helpers from processorhelper to component (#4889)
- Deprecated
processorhelper.CreateDefaultConfig
in favour ofcomponent.ProcessorDefaultConfigFunc
- Deprecated
processorhelper.WithTraces
in favour ofcomponent.WithTracesProcessor
- Deprecated
processorhelper.WithMetrics
in favour ofcomponent.WithMetricsProcessor
- Deprecated
processorhelper.WithLogs
in favour ofcomponent.WithLogsProcessor
- Deprecated
processorhelper.NewFactory
in favour ofcomponent.NewProcessorFactory
- Deprecated
- Move helpers from exporterhelper to component (#4899)
- Deprecated
exporterhelper.CreateDefaultConfig
in favour ofcomponent.ExporterDefaultConfigFunc
- Deprecated
exporterhelper.WithTraces
in favour ofcomponent.WithTracesExporter
- Deprecated
exporterhelper.WithMetrics
in favour ofcomponent.WithMetricsExporter
- Deprecated
exporterhelper.WithLogs
in favour ofcomponent.WithLogsExporter
- Deprecated
exporterhelper.NewFactory
in favour ofcomponent.NewExporterFactory
- Deprecated
- Move helpers from receiverhelper to component (#4891)
- Deprecated
receiverhelper.CreateDefaultConfig
in favour ofcomponent.ReceiverDefaultConfigFunc
- Deprecated
receiverhelper.WithTraces
in favour ofcomponent.WithTracesReceiver
- Deprecated
receiverhelper.WithMetrics
in favour ofcomponent.WithMetricsReceiver
- Deprecated
receiverhelper.WithLogs
in favour ofcomponent.WithLogsReceiver
- Deprecated
receiverhelper.NewFactory
in favour ofcomponent.NewReceiverFactory
- Deprecated
- Change otel collector to enable open telemetry metrics through feature gate instead of a constant
- Remove support for legacy otlp/http port. (#4916)
- Remove deprecated funcs in pdata (#4809)
- Remove deprecated Retrieve funcs/calls (#4922)
- Remove deprecated NewConfigProvider funcs (#4937)
💡 Enhancements 💡
- Add validation to check at least one endpoint is specified in otlphttpexporter's configuration (#4860)
🧰 Bug fixes 🧰
- Initialized logger with collector to avoid potential race condition panic on
Shutdown
(#4827) - In addition to traces, now logs and metrics processors will start the memory limiter.
Added thread-safe logic so only the first processor can launch thecheckMemLimits
go-routine and the last processor
that calls shutdown to terminate it; this is done per memory limiter instance.
Added memory limiter factory to cache initiated object and be reused by similar config. This guarantees a single
runningcheckMemLimits
per config (#4886) - Resolved race condition in collector when calling
Shutdown
(#4878)
v0.45.0
v0.45.0 Beta
Images and binaries here: https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/v0.45.0
🛑 Breaking changes 🛑
- Remove deprecated funcs in configtelemetry (#4808)
- Deprecate
service/defaultcomponents
go package (#4622) otlphttp
andotlp
exporters enable gzip compression by default (#4632)
💡 Enhancements 💡
- Reject invalid queue size exporterhelper (#4799)
- Transform configmapprovider.Retrieved interface to a struct (#4789)
- Added feature gate summary to zpages extension (#4834)
- Add support for reloading TLS certificates (#4737)
🚩 Deprecations 🚩
- Deprecate
pdata.NumberDataPoint.Type()
andpdata.Exemplar.Type()
in favor ofNumberDataPoint.ValueType()
and
Exemplar.ValueType()
(#4850)
v0.44.0
v0.44.0 Beta
🛑 Breaking changes 🛑
- Deprecate
service.NewConfigProvider
, and a new versionservice.MustNewConfigProvider
(#4734). - Updated to OTLP 0.12.0. Deprecated traces and metrics messages that existed
in 0.11.0 are no longer converted to the messages and fields that replaced the deprecated ones.
Received deprecated messages and fields will be now ignored. In OTLP/JSON in the
instrumentationLibraryLogs object the "logs" field is now named "logRecords" (#4724)