diff --git a/.chloggen/rm-connectors-featuregate.yaml b/.chloggen/rm-connectors-featuregate.yaml new file mode 100755 index 00000000000..5b2f0205856 --- /dev/null +++ b/.chloggen/rm-connectors-featuregate.yaml @@ -0,0 +1,16 @@ +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: breaking + +# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver) +component: service + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Remove 'service.connectors' featuregate + +# One or more tracking issues or pull requests related to the change +issues: [7952] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: diff --git a/otelcol/config.go b/otelcol/config.go index 65292cddc64..31e51a1dafe 100644 --- a/otelcol/config.go +++ b/otelcol/config.go @@ -8,7 +8,6 @@ import ( "fmt" "go.opentelemetry.io/collector/component" - "go.opentelemetry.io/collector/otelcol/internal/sharedgate" "go.opentelemetry.io/collector/service" ) @@ -97,10 +96,6 @@ func (cfg *Config) Validate() error { } } - if len(cfg.Connectors) != 0 && !sharedgate.ConnectorsFeatureGate.IsEnabled() { - return fmt.Errorf("connectors require feature gate: %s", sharedgate.ConnectorsFeatureGate.ID()) - } - if err := cfg.Service.Validate(); err != nil { return err } diff --git a/otelcol/internal/sharedgate/sharedgate.go b/otelcol/internal/sharedgate/sharedgate.go deleted file mode 100644 index 590096a6787..00000000000 --- a/otelcol/internal/sharedgate/sharedgate.go +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright The OpenTelemetry Authors -// SPDX-License-Identifier: Apache-2.0 - -// Package sharedgate exposes a featuregate that is used by multiple packages. -package sharedgate // import "go.opentelemetry.io/collector/otelcol/internal/sharedgate" - -import "go.opentelemetry.io/collector/featuregate" - -var ConnectorsFeatureGate = featuregate.GlobalRegistry().MustRegister( - "service.connectors", - featuregate.StageStable, - featuregate.WithRegisterFromVersion("v0.71.0"), - featuregate.WithRegisterDescription("Enables 'connectors', a new type of component for transmitting signals between pipelines."), - featuregate.WithRegisterReferenceURL("https://github.com/open-telemetry/opentelemetry-collector/issues/2336"), - featuregate.WithRegisterToVersion("v0.78.0"))