diff --git a/.chloggen/remove-tp-metric-context-fg.yaml b/.chloggen/remove-tp-metric-context-fg.yaml new file mode 100644 index 0000000000000..7f529dcd111f0 --- /dev/null +++ b/.chloggen/remove-tp-metric-context-fg.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: [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. +# 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]()