From f713ebf60a412bf27faeffeb9f2f71b1db8821b9 Mon Sep 17 00:00:00 2001 From: Gil Raphaelli Date: Fri, 17 Nov 2023 15:49:11 -0500 Subject: [PATCH] remove unused struct --- .../internal/metrics/func_convert_gauge_to_sum_datapoint.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/processor/transformprocessor/internal/metrics/func_convert_gauge_to_sum_datapoint.go b/processor/transformprocessor/internal/metrics/func_convert_gauge_to_sum_datapoint.go index adfe9f37f253..dab12e96d094 100644 --- a/processor/transformprocessor/internal/metrics/func_convert_gauge_to_sum_datapoint.go +++ b/processor/transformprocessor/internal/metrics/func_convert_gauge_to_sum_datapoint.go @@ -13,16 +13,12 @@ import ( "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottldatapoint" ) -type convertDatapointGaugeToSumArguments struct { - StringAggTemp string - Monotonic bool -} - func newConvertDatapointGaugeToSumFactory() ottl.Factory[ottldatapoint.TransformContext] { return ottl.NewFactory("convert_gauge_to_sum", &convertGaugeToSumArguments{}, createConvertDatapointGaugeToSumFunction) } func createConvertDatapointGaugeToSumFunction(_ ottl.FunctionContext, oArgs ottl.Arguments) (ottl.ExprFunc[ottldatapoint.TransformContext], error) { + // use the same args as in metric context args, ok := oArgs.(*convertGaugeToSumArguments) if !ok {