Skip to content

Commit

Permalink
updated feature-gate flag name
Browse files Browse the repository at this point in the history
  • Loading branch information
daidokoro committed Jul 2, 2024
1 parent 1ff58fa commit cdd8ee9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions processor/transformprocessor/internal/metrics/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ var useConvertBetweenSumAndGaugeMetricContext = featuregate.GlobalRegistry().Mus
featuregate.WithRegisterDescription("When enabled will use metric context for conversion between sum and gauge"),
)

var useConvertExponentialHistogramToBucketedHistogram = featuregate.GlobalRegistry().MustRegister(
"processor.transform.ConvertExponentialHistogramToBucketedHistogram",
var useConvertExponentialHistogramToExplicitHistogram = featuregate.GlobalRegistry().MustRegister(
"processor.transform.ConvertExponentialHistogramToExplicitHistogram",
featuregate.StageAlpha,
featuregate.WithRegisterDescription("When enabled will convert exponential histograms to bucketed histograms"),
)
Expand Down Expand Up @@ -66,7 +66,7 @@ func MetricFunctions() map[string]ottl.Factory[ottlmetric.TransformContext] {
}
}

if useConvertExponentialHistogramToBucketedHistogram.IsEnabled() {
if useConvertExponentialHistogramToExplicitHistogram.IsEnabled() {
for _, f := range []ottl.Factory[ottlmetric.TransformContext]{
newconvertExponentialHistToExplicitHistFactory(),
} {
Expand Down

0 comments on commit cdd8ee9

Please sign in to comment.