From ad4f120e172bbb6b25f1c7283cc30b9c4fa4a7a6 Mon Sep 17 00:00:00 2001 From: dmathieu <42@dmathieu.com> Date: Tue, 6 Jan 2026 16:15:48 +0100 Subject: [PATCH 1/2] remove deprecated high cardinality metrics feature gate --- ...e-disable-high-cardinality-metrics-fg.yaml | 25 +++++++++++++++++++ service/service.go | 10 -------- 2 files changed, 25 insertions(+), 10 deletions(-) create mode 100644 .chloggen/remove-disable-high-cardinality-metrics-fg.yaml diff --git a/.chloggen/remove-disable-high-cardinality-metrics-fg.yaml b/.chloggen/remove-disable-high-cardinality-metrics-fg.yaml new file mode 100644 index 000000000000..9122a07a1d08 --- /dev/null +++ b/.chloggen/remove-disable-high-cardinality-metrics-fg.yaml @@ -0,0 +1,25 @@ +# Use this changelog template to create an entry for release notes. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: breaking + +# The name of the component, or a single word describing the area of concern, (e.g. receiver/otlp) +component: pkg/service + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Remove deprecated `telemetry.disableHighCardinalityMetrics` feature gate. + +# One or more tracking issues or pull requests related to the change +issues: [] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: + +# Optional: The change log or logs in which this entry should be included. +# e.g. '[user]' or '[user, api]' +# Include 'user' if the change is relevant to end users. +# Include 'api' if there is a change to a library API. +# Default: '[user]' +change_logs: [user] diff --git a/service/service.go b/service/service.go index dd0ec2b98045..1c831b4fc299 100644 --- a/service/service.go +++ b/service/service.go @@ -23,7 +23,6 @@ import ( "go.opentelemetry.io/collector/connector" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/extension" - "go.opentelemetry.io/collector/featuregate" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/processor" "go.opentelemetry.io/collector/receiver" @@ -36,15 +35,6 @@ import ( "go.opentelemetry.io/collector/service/telemetry" ) -// This feature gate is deprecated and will be removed in 1.40.0. Views can now be configured. -var _ = featuregate.GlobalRegistry().MustRegister( - "telemetry.disableHighCardinalityMetrics", - featuregate.StageDeprecated, - featuregate.WithRegisterToVersion("0.133.0"), - featuregate.WithRegisterDescription( - "Controls whether the collector should enable potentially high "+ - "cardinality metrics. Deprecated, configure service::telemetry::metrics::views instead.")) - // ModuleInfo describes the Go module for a particular component. type ModuleInfo = moduleinfo.ModuleInfo From ddf154c8e7d08fbd51a602ba4b3221caffbb08ce Mon Sep 17 00:00:00 2001 From: dmathieu <42@dmathieu.com> Date: Tue, 6 Jan 2026 16:18:31 +0100 Subject: [PATCH 2/2] add pr number --- .chloggen/remove-disable-high-cardinality-metrics-fg.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.chloggen/remove-disable-high-cardinality-metrics-fg.yaml b/.chloggen/remove-disable-high-cardinality-metrics-fg.yaml index 9122a07a1d08..d641c00bac4b 100644 --- a/.chloggen/remove-disable-high-cardinality-metrics-fg.yaml +++ b/.chloggen/remove-disable-high-cardinality-metrics-fg.yaml @@ -10,7 +10,7 @@ component: pkg/service note: Remove deprecated `telemetry.disableHighCardinalityMetrics` feature gate. # One or more tracking issues or pull requests related to the change -issues: [] +issues: [14373] # (Optional) One or more lines of additional information to render under the primary note. # These lines will be padded with 2 spaces and then inserted directly into the document.