Conversation
ℹ️ Artifact update noticeFile name: example/otel-collector/go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
File name: example/stdout/go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
File name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #583 +/- ##
=======================================
+ Coverage 85.8% 86.7% +0.8%
=======================================
Files 16 16
Lines 754 752 -2
=======================================
+ Hits 647 652 +5
+ Misses 76 74 -2
+ Partials 31 26 -5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
c2d243f to
3d4c77b
Compare
3d4c77b to
b0d9453
Compare
###⚠️ Notice⚠️ This release contains breaking changes: - `RegisterDBStatsMetrics` now returns `(metric.Registration, error)` (previously returned only `error`) so callers can `Unregister()` the callback and avoid memory leaks. - If you need to unregister: `reg, err := RegisterDBStatsMetrics(...)` + `defer reg.Unregister()`. - If you do not need to unregister: `_, err := RegisterDBStatsMetrics(...)`. - `WithAttributes` now appends attributes when specified multiple times (previously overwrote existing attributes). - If you relied on overwriting: consolidate your attributes into a single `WithAttributes(...)` call. ### Added - `WithTextMapPropagator` allows customization of the OTel text map propagator used by SQLCommenter. (#540) This is an experimental feature and may be changed or removed in a later release. ### Removed - Drop support for [Go 1.23]. (#533) ### Changed - Reduce allocations and improve performance when creating spans. (#549) - Reduce allocations when recording metrics. (#550) - `RegisterDBStatsMetrics` now returns a `metric.Registration` so callbacks can be unregistered. (#580) - `WithAttributes` now accumulates attributes across multiple calls instead of overwriting. (#576) - Upgrade OTel to `v1.39.0`. (#583) [Go 1.23]: https://go.dev/doc/go1.23
This PR contains the following updates:
v1.38.0->v1.39.0v1.38.0->v1.39.0v1.38.0->v1.39.0v1.38.0->v1.39.0v0.60.0->v0.61.0v1.38.0->v1.39.0v1.38.0->v1.39.0v1.38.0->v1.39.0v1.38.0->v1.39.0v1.38.0->v1.39.0Release Notes
open-telemetry/opentelemetry-go (go.opentelemetry.io/otel)
v1.39.0Compare Source
Overview
Added
go.opentelemetry.io/otel/sdk/metricusing hashing for map keys. (#7175)WithInstrumentationAttributeSetoption togo.opentelemetry.io/otel/log,go.opentelemetry.io/otel/metric, andgo.opentelemetry.io/otel/tracepackages. This provides a concurrent-safe and performant alternative toWithInstrumentationAttributesby accepting a pre-constructedattribute.Set. (#7287)go.opentelemetry.io/otel/exporters/prometheus. Check thego.opentelemetry.io/otel/exporters/prometheus/internal/xpackage documentation for more information. (#7345)go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc. (#7353)DeltaTemporalitySelector,CumulativeTemporalitySelector,LowMemoryTemporalitySelectortogo.opentelemetry.io/otel/sdk/metric. (#7434)go.opentelemetry.io/otel/sdk/log. (#7548)go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc. (#7459)go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp. (#7486)go.opentelemetry.io/otel/sdk/trace. (#7374)go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp. (#7512)go.opentelemetry.io/otel/sdk/metric. (#7524)go.opentelemetry.io/otel/sdk/metric. (#7571)OTEL_EXPORTER_OTLP_LOGS_INSECUREandOTEL_EXPORTER_OTLP_INSECUREenvironmental variables ingo.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp. (#7608)Enabledmethod to theProcessorinterface ingo.opentelemetry.io/otel/sdk/log. AllProcessorimplementations now include anEnabledmethod. (#7639)go.opentelemetry.io/otel/semconv/v1.38.0package. The package contains semantic conventions from thev1.38.0version of the OpenTelemetry Semantic Conventions. See the migration documentation for information on how to upgrade fromgo.opentelemetry.io/otel/semconv/v1.37.0.(#7648)Changed
Distinctingo.opentelemetry.io/otel/attributeis no longer guaranteed to uniquely identify an attribute set. Collisions betweenDistinctvalues for different Sets are possible with extremely high cardinality (billions of series per instrument), but are highly unlikely. (#7175)WithInstrumentationAttributesingo.opentelemetry.io/otel/tracesynchronously de-duplicates the passed attributes instead of delegating it to the returnedTracerOption. (#7266)WithInstrumentationAttributesingo.opentelemetry.io/otel/metersynchronously de-duplicates the passed attributes instead of delegating it to the returnedMeterOption. (#7266)WithInstrumentationAttributesingo.opentelemetry.io/otel/logsynchronously de-duplicates the passed attributes instead of delegating it to the returnedLoggerOption. (#7266)OTEL_GO_X_SELF_OBSERVABILITYenvironment variable toOTEL_GO_X_OBSERVABILITYingo.opentelemetry.io/otel/sdk/trace,go.opentelemetry.io/otel/sdk/log, andgo.opentelemetry.io/otel/exporters/stdout/stdouttrace. (#7302)Recordingo.opentelemetry.io/otel/sdk/metricwhen min and max are disabled usingNoMinMax. (#7306)prometheus.NewInvalidMetricingo.opentelemetry.io/otel/exporters/prometheus.NewInvalidMetric, and Prometheus scrapes fail with HTTP 500 by default. To preserve the prior behavior (scrapes succeed while errors are logged), configure your Prometheus HTTP handler with:promhttp.HandlerOpts{ ErrorHandling: promhttp.ContinueOnError }. (#7363)go.opentelemetry.io/otel/attributefor better performance. (#7371)TranslationStrategyingo.opentelemetry.io/exporters/prometheusis changed fromotlptranslator.NoUTF8EscapingWithSuffixestootlptranslator.UnderscoreEscapingWithSuffixes. (#7421)go.opentelemetry.io/otel/sdk/metric. (#7427)Span.Flagsfield ingo.opentelemetry.io/exporters/otlp/otlptrace/otlptracehttpandgo.opentelemetry.io/exporters/otlp/otlptrace/otlptracegrpc. (#7438)ErrorTypefunction ingo.opentelemetry.io/otel/semconv/v1.37.0now handles custom error types.If an error implements an
ErrorType() stringmethod, the return value of that method will be used as the error type. (#7442)Fixed
WithInstrumentationAttributesoptions ingo.opentelemetry.io/otel/trace,go.opentelemetry.io/otel/metric, andgo.opentelemetry.io/otel/logto properly merge attributes when passed multiple times instead of replacing them. Attributes with duplicate keys will use the last value passed. (#7300)attribute.Setwhen using theEqualmethod is not affected by the user overriding the empty set pointed to byattribute.EmptySetingo.opentelemetry.io/otel/attribute. (#7357)go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc. (#7372)go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp. (#7372)go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc. (#7372)go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp. (#7372)go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc. (#7372)go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp. (#7372)AddAttributes,SetAttributes,SetBodyonRecordingo.opentelemetry.io/otel/sdk/logto not mutate input. (#7403)RecordSetmethods ingo.opentelemetry.io/otel/semconv/v1.37.0. (#7655)RecordSetmethods ingo.opentelemetry.io/otel/semconv/v1.36.0. (#7656)Removed
FilterProcessorinterface ingo.opentelemetry.io/otel/sdk/log. TheEnabledmethod has been added to theProcessorinterface instead. AllProcessorimplementations must now implement theEnabledmethod. Custom processors that do not filter records can implementEnabledto returntrue. (#7639)What's Changed
ef028d9by @renovate[bot] in #72790261db7by @renovate[bot] in #72789b996f7by @renovate[bot] in #7308f7b3be9by @renovate[bot] in #7311af835b0by @renovate[bot] in #73139702482by @renovate[bot] in #7335stdouttrace.Exporterinstrumentation in internal package by @MrAlias in #7307df92998by @renovate[bot] in #7350recordingSpanby @MrAlias in #7354TestNewInstrumentationby @yumosx in #7369a6e64aaby @renovate[bot] in #73759219d12by @renovate[bot] in #7393context.Background()witht.Context()/b.Context()in tests by @flc1125 in #7352xpackage tootlptracegrpcby @MrAlias in #740157b25aeby @renovate[bot] in #74298e64475by @renovate[bot] in #74314eae98aby @renovate[bot] in #743927f1f14by @renovate[bot] in #74487c0ddcbby @renovate[bot] in #7449internal/observpackage tootlptracegrpcby @MrAlias in #740465f7160by @renovate[bot] in #746049b9836by @renovate[bot] in #7468otlptracegrpcexporter by @MrAlias in #745949b9836by @renovate[bot] in #7469xpackage tootlptracehttpby @MrAlias in #7476internal/observpkg tootlptracehttpby @MrAlias in #7480otlptracehttpexporter by @MrAlias in #7486internal/observpackage to otlploghttp by @yumosx in #74844626949by @renovate[bot] in #750688f65dcby @renovate[bot] in #7521Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.