From 5aff73a243b9e8c8ac3543ba830551a8fa29c112 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Wed, 25 Sep 2024 13:35:04 -0700 Subject: [PATCH] [chore] Fix internal variable name (#11278) Signed-off-by: Bogdan Drutu --- service/telemetry/factory.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/telemetry/factory.go b/service/telemetry/factory.go index 24802271e31..630fe49f4e4 100644 --- a/service/telemetry/factory.go +++ b/service/telemetry/factory.go @@ -19,9 +19,9 @@ import ( "go.opentelemetry.io/collector/service/internal/resource" ) -// disableHighCardinalityMetricsfeatureGate is the feature gate that controls whether the collector should enable +// disableHighCardinalityMetricsFeatureGate is the feature gate that controls whether the collector should enable // potentially high cardinality metrics. The gate will be removed when the collector allows for view configuration. -var disableHighCardinalityMetricsfeatureGate = featuregate.GlobalRegistry().MustRegister( +var disableHighCardinalityMetricsFeatureGate = featuregate.GlobalRegistry().MustRegister( "telemetry.disableHighCardinalityMetrics", featuregate.StageAlpha, featuregate.WithRegisterDescription("controls whether the collector should enable potentially high"+ @@ -68,7 +68,7 @@ func NewFactory() Factory { }), withMeterProvider(func(_ context.Context, set Settings, cfg component.Config) (metric.MeterProvider, error) { c := *cfg.(*Config) - disableHighCard := disableHighCardinalityMetricsfeatureGate.IsEnabled() + disableHighCard := disableHighCardinalityMetricsFeatureGate.IsEnabled() return newMeterProvider( meterProviderSettings{ res: resource.New(set.BuildInfo, c.Resource),