Skip to content

Commit

Permalink
remove unused struct
Browse files Browse the repository at this point in the history
  • Loading branch information
graphaelli committed Nov 17, 2023
1 parent 0821339 commit f713ebf
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f713ebf

Please sign in to comment.