diff --git a/internal/featuregates/featuregates.go b/internal/featuregates/featuregates.go index aad444ab8bb..8dbe2ffc28d 100644 --- a/internal/featuregates/featuregates.go +++ b/internal/featuregates/featuregates.go @@ -19,6 +19,7 @@ var StrictlyTypedInputGate = featuregate.GlobalRegistry().MustRegister(StrictlyT ) var DisableOpenCensusBridge = featuregate.GlobalRegistry().MustRegister("service.disableOpenCensusBridge", - featuregate.StageBeta, + featuregate.StageStable, featuregate.WithRegisterFromVersion("v0.105.0"), + featuregate.WithRegisterToVersion("v0.109.0"), featuregate.WithRegisterDescription("`Disables the OpenCensus bridge meaning any component still using the OpenCensus SDK will no longer be able to produce telemetry.")) diff --git a/service/internal/proctelemetry/config.go b/service/internal/proctelemetry/config.go index ec9a7050cce..e50a44b83cf 100644 --- a/service/internal/proctelemetry/config.go +++ b/service/internal/proctelemetry/config.go @@ -27,7 +27,6 @@ import ( sdkmetric "go.opentelemetry.io/otel/sdk/metric" "go.opentelemetry.io/otel/sdk/resource" - "go.opentelemetry.io/collector/internal/featuregates" "go.opentelemetry.io/collector/processor/processorhelper" semconv "go.opentelemetry.io/collector/semconv/v1.18.0" ) @@ -170,9 +169,6 @@ func initPrometheusExporter(prometheusConfig *config.Prometheus, asyncErrorChann otelprom.WithNamespace("otelcol"), otelprom.WithResourceAsConstantLabels(attribute.NewDenyKeysFilter()), } - if !featuregates.DisableOpenCensusBridge.IsEnabled() { - opts = append(opts, otelprom.WithProducer(opencensus.NewMetricProducer())) - } exporter, err := otelprom.New(opts...) if err != nil { return nil, nil, fmt.Errorf("error creating otel prometheus exporter: %w", err) diff --git a/service/service.go b/service/service.go index f160335d83f..9a4f5d47de7 100644 --- a/service/service.go +++ b/service/service.go @@ -22,7 +22,6 @@ import ( "go.opentelemetry.io/collector/connector" "go.opentelemetry.io/collector/exporter" "go.opentelemetry.io/collector/extension" - "go.opentelemetry.io/collector/internal/featuregates" "go.opentelemetry.io/collector/internal/localhostgate" "go.opentelemetry.io/collector/internal/obsreportconfig" "go.opentelemetry.io/collector/pdata/pcommon" @@ -115,9 +114,6 @@ func New(ctx context.Context, set Settings, cfg Config) (*Service, error) { logger.Info("Setting up own telemetry...") - if featuregates.DisableOpenCensusBridge.IsEnabled() { - logger.Info("OpenCensus bridge is disabled for Collector telemetry and will be removed in a future version, use --feature-gates=-service.disableOpenCensusBridge to re-enable") - } mp, err := newMeterProvider( meterProviderSettings{ res: res,