OpenTelemetry - CNCF/opentelemetry-go: Release v1.31.0
Name: opentelemetry-go
Owner: OpenTelemetry - CNCF
Release: Release v1.31.0/v0.53.0/v0.7.0/v0.0.10
Released: 2024-10-11
License: Apache-2.0
Release Assets:
Overview
Added
- Add
go.opentelemetry.io/otel/sdk/metric/exemplar
package which includesExemplar
,Filter
,TraceBasedFilter
,AlwaysOnFilter
,HistogramReservoir
,FixedSizeReservoir
,Reservoir
,Value
andValueType
types. These will be used for configuring the exemplar reservoir for the metrics sdk. (#5747, #5862) - Add
WithExportBufferSize
option to log batch processor.(#5877)
Changed
- Enable exemplars by default in
go.opentelemetry.io/otel/sdk/metric
. Exemplars can be disabled by settingOTEL_METRICS_EXEMPLAR_FILTER=always_off
(#5778) Logger.Enabled
ingo.opentelemetry.io/otel/log
now accepts a newly introducedEnabledParameters
type instead ofRecord
. (#5791)FilterProcessor.Enabled
ingo.opentelemetry.io/otel/sdk/log/internal/x
now acceptsEnabledParameters
instead ofRecord
. (#5791)- The
Record
type ingo.opentelemetry.io/otel/log
is no longer comparable. (#5847) - Performance improvements for the trace SDK
SetAttributes
method inSpan
. (#5864) - Reduce memory allocations for the
Event
andLink
lists inSpan
. (#5858) - Performance improvements for the trace SDK
AddEvent
,AddLink
,RecordError
andEnd
methods inSpan
. (#5874)
Deprecated
- Deprecate all examples under
go.opentelemetry.io/otel/example
as they are moved to Contrib repository. (#5854)
Fixed
- The race condition for multiple
FixedSize
exemplar reservoirs identified in #5814 is resolved. (#5819) - Fix log records duplication in case of heterogeneous resource attributes by correctly mapping each log record to it's resource and scope. (#5803)
- Fix timer channel drain to avoid hanging on Go 1.23. (#5868)
- Fix delegation for global meter providers, and panic when calling otel.SetMeterProvider. (#5827)
- Change the
reflect.TypeOf
to use a nil pointer to not allocate on the heap unless necessary. (#5827)
What's Changed
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.109.0 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5802
- Enable exemplars by default by @dashpole in https://github.com/open-telemetry/opentelemetry-go/pull/5778
- fix(deps): update module go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp to v0.55.0 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5809
- fix(deps): update module google.golang.org/grpc to v1.66.2 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5807
- fix(deps): update module go.opentelemetry.io/contrib/bridges/otelslog to v0.5.0 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5808
- log: Introduce EnabledParameters by @pellared in https://github.com/open-telemetry/opentelemetry-go/pull/5791
- Group the google/x renovabot upgrades by @dmathieu in https://github.com/open-telemetry/opentelemetry-go/pull/5813
- Fix gosec overflow alerts by @dmathieu in https://github.com/open-telemetry/opentelemetry-go/pull/5799
- fix(deps): update module github.com/golangci/golangci-lint to v1.61.0 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5796
- doc(metric): fix incorrect explanation of how
metric.WithAttributes
works by @wzy9607 in https://github.com/open-telemetry/opentelemetry-go/pull/5822 - simplify conversions from slice to array by @snowcrumble in https://github.com/open-telemetry/opentelemetry-go/pull/5818
- Move global random number generator to
randRes
field by @MrAlias in https://github.com/open-telemetry/opentelemetry-go/pull/5819 - Fix duplicate logs across resources by @pree-dew in https://github.com/open-telemetry/opentelemetry-go/pull/5803
- fix(deps): update module github.com/prometheus/client_golang to v1.20.4 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5826
- fix(deps): update module google.golang.org/grpc to v1.67.0 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5831
- [chore]: enable bool-compare rule from testifylint by @mmorel-35 in https://github.com/open-telemetry/opentelemetry-go/pull/5829
- [chore]: enable len and empty rules from testifylint by @mmorel-35 in https://github.com/open-telemetry/opentelemetry-go/pull/5832
- [chore]: enable suite-extra-assert-call rule from testifylint by @mmorel-35 in https://github.com/open-telemetry/opentelemetry-go/pull/5833
- chore(deps): update module github.com/klauspost/compress to v1.17.10 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5834
- [chore]: enable error-is-as rule from testifylint by @mmorel-35 in https://github.com/open-telemetry/opentelemetry-go/pull/5836
- chore(deps): update googleapis to 9d4c2d2 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5841
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.110.0 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5842
- chore(deps): update module github.com/rogpeppe/go-internal to v1.13.1 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5835
- [chore]: enable error-nil rule from testifylint by @mmorel-35 in https://github.com/open-telemetry/opentelemetry-go/pull/5843
- clarify that users should not directly use the log bridge API by @dashpole in https://github.com/open-telemetry/opentelemetry-go/pull/5837
- log: Make Record not comparable by @pellared in https://github.com/open-telemetry/opentelemetry-go/pull/5847
- [chore]: enable expected-actual rule from testifylint by @mmorel-35 in https://github.com/open-telemetry/opentelemetry-go/pull/5848
- Move exemplar types to non-internal package by @dashpole in https://github.com/open-telemetry/opentelemetry-go/pull/5747
- [chore]: enable negative-positive rule from testifylint by @mmorel-35 in https://github.com/open-telemetry/opentelemetry-go/pull/5849
- chore(deps): update googleapis to af27646 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5855
- fix(deps): update module google.golang.org/grpc to v1.67.1 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5857
- Deprecate examples and redirect to contrib by @pellared in https://github.com/open-telemetry/opentelemetry-go/pull/5854
- Move @MadVikingGod to Emeritus status by @MrAlias in https://github.com/open-telemetry/opentelemetry-go/pull/5856
- fix(deps): update module github.com/prometheus/common to v0.60.0 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5860
- chore(deps): update codecov/codecov-action action to v4.6.0 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5859
- Rename SampledFilter to TraceBasedFilter by @dashpole in https://github.com/open-telemetry/opentelemetry-go/pull/5862
- Authenticate link checking requests by @dmathieu in https://github.com/open-telemetry/opentelemetry-go/pull/5865
- [doc] sdk/log: Do not create instances of Record by @pellared in https://github.com/open-telemetry/opentelemetry-go/pull/5871
- Move @hanyuancheung to Emeritus status by @pellared in https://github.com/open-telemetry/opentelemetry-go/pull/5863
- Fix timer channel drain to avoid hanging in Go 1.23 by @dany74q in https://github.com/open-telemetry/opentelemetry-go/pull/5869
- Fix delegation for global MeterProviders by @Jesse-Bonfire in https://github.com/open-telemetry/opentelemetry-go/pull/5828
- fix(deps): update golang.org/x by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5872
- Performance improvements for
recordingSpan
SetAttributes
andaddOverCapAttrs
by @boekkooi-impossiblecloud in https://github.com/open-telemetry/opentelemetry-go/pull/5864 - fix(deps): update module google.golang.org/protobuf to v1.35.1 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5875
- chore(deps): update googleapis to 5fefd90 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5876
- Reduce
newEvictedQueueLink
andnewEvictedQueueEvent
memory allocations by @boekkooi-impossiblecloud in https://github.com/open-telemetry/opentelemetry-go/pull/5858 - chore(deps): update lycheeverse/lychee-action action to v2 by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5878
- Performance improvements for the trace SDK in
Span
. by @boekkooi-impossiblecloud in https://github.com/open-telemetry/opentelemetry-go/pull/5874 - fix(deps): update golang.org/x/exp digest to f66d83c by @renovate in https://github.com/open-telemetry/opentelemetry-go/pull/5880
- Add an option to configure the exporter buffer of the BatchProcessor by @Frapschen in https://github.com/open-telemetry/opentelemetry-go/pull/5877
- Release v1.31.0/v0.53.0/v0.7.0/v0.0.10 by @dashpole in https://github.com/open-telemetry/opentelemetry-go/pull/5883
New Contributors
- @wzy9607 made their first contribution in https://github.com/open-telemetry/opentelemetry-go/pull/5822
- @snowcrumble made their first contribution in https://github.com/open-telemetry/opentelemetry-go/pull/5818
- @mmorel-35 made their first contribution in https://github.com/open-telemetry/opentelemetry-go/pull/5829
- @dany74q made their first contribution in https://github.com/open-telemetry/opentelemetry-go/pull/5869
- @Jesse-Bonfire made their first contribution in https://github.com/open-telemetry/opentelemetry-go/pull/5828
- @boekkooi-impossiblecloud made their first contribution in https://github.com/open-telemetry/opentelemetry-go/pull/5864
Full Changelog: https://github.com/open-telemetry/opentelemetry-go/compare/v1.30.0...v1.31.0