From 9dae103bc8cd96860822e878e7975229dbb2b177 Mon Sep 17 00:00:00 2001 From: Evan Bradley <11745660+evan-bradley@users.noreply.github.com> Date: Fri, 3 Apr 2026 08:55:04 -0400 Subject: [PATCH 1/2] [processor/transform] Remove `ConvertBetweenSumAndGaugeMetricContext` feature gate --- .chloggen/main.yaml | 27 +++++++++++++++++++ .../internal/metrics/functions.go | 9 ------- 2 files changed, 27 insertions(+), 9 deletions(-) create mode 100644 .chloggen/main.yaml diff --git a/.chloggen/main.yaml b/.chloggen/main.yaml new file mode 100644 index 0000000000000..8fa70b5210908 --- /dev/null +++ b/.chloggen/main.yaml @@ -0,0 +1,27 @@ +# 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/filelog) +component: processor/transform + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Remove the `processor.transform.ConvertBetweenSumAndGaugeMetricContext` feature gate. + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +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: This feature gate has been stable for over a year and is no longer used in any code paths. + +# If your change doesn't affect end users or the exported elements of any package, +# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. +# 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: [] diff --git a/processor/transformprocessor/internal/metrics/functions.go b/processor/transformprocessor/internal/metrics/functions.go index 86a0f3902ec11..1cc131bcec2e3 100644 --- a/processor/transformprocessor/internal/metrics/functions.go +++ b/processor/transformprocessor/internal/metrics/functions.go @@ -6,21 +6,12 @@ package metrics // import "github.com/open-telemetry/opentelemetry-collector-con import ( "maps" - "go.opentelemetry.io/collector/featuregate" - "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl" "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottldatapoint" "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlmetric" "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/ottlfuncs" ) -var UseConvertBetweenSumAndGaugeMetricContext = featuregate.GlobalRegistry().MustRegister( - "processor.transform.ConvertBetweenSumAndGaugeMetricContext", - featuregate.StageStable, - featuregate.WithRegisterDescription("When enabled will use metric context for conversion between sum and gauge"), - featuregate.WithRegisterToVersion("v0.114.0"), -) - func DataPointFunctions() map[string]ottl.Factory[*ottldatapoint.TransformContext] { functions := ottlfuncs.StandardFuncs[*ottldatapoint.TransformContext]() From 45cd70d03d49d330528d52e30910c715dfb0a559 Mon Sep 17 00:00:00 2001 From: Evan Bradley <11745660+evan-bradley@users.noreply.github.com> Date: Fri, 3 Apr 2026 08:57:50 -0400 Subject: [PATCH 2/2] Update changelog --- .chloggen/{main.yaml => remove-tp-metric-context-fg.yaml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .chloggen/{main.yaml => remove-tp-metric-context-fg.yaml} (98%) diff --git a/.chloggen/main.yaml b/.chloggen/remove-tp-metric-context-fg.yaml similarity index 98% rename from .chloggen/main.yaml rename to .chloggen/remove-tp-metric-context-fg.yaml index 8fa70b5210908..7f529dcd111f0 100644 --- a/.chloggen/main.yaml +++ b/.chloggen/remove-tp-metric-context-fg.yaml @@ -10,7 +10,7 @@ component: processor/transform note: Remove the `processor.transform.ConvertBetweenSumAndGaugeMetricContext` feature gate. # Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. -issues: [] +issues: [47358] # (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.