Skip to content

Commit

Permalink
[chore] remove exported internal unnecessary constant (open-telemetry…
Browse files Browse the repository at this point in the history
…#11250)

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu authored and HongChenTW committed Dec 19, 2024
1 parent dbb4b1a commit cdb182d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/globalgates/globalgates.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ var NoopTracerProvider = featuregate.GlobalRegistry().MustRegister("service.noop
featuregate.WithRegisterToVersion("v0.109.0"),
featuregate.WithRegisterDescription("Sets a Noop OpenTelemetry TracerProvider to reduce memory allocations. This featuregate is incompatible with the zPages extension."))

const UseLocalHostAsDefaultHostID = "component.UseLocalHostAsDefaultHost"

// UseLocalHostAsDefaultHostfeatureGate is the feature gate that controls whether
// server-like receivers and extensions such as the OTLP receiver use localhost as the default host for their endpoints.
var _ = mustRegisterOrLoad(
featuregate.GlobalRegistry(),
UseLocalHostAsDefaultHostID,
"component.UseLocalHostAsDefaultHost",
featuregate.StageStable,
featuregate.WithRegisterToVersion("v0.110.0"),
featuregate.WithRegisterDescription("controls whether server-like receivers and extensions such as the OTLP receiver use localhost as the default host for their endpoints"),
Expand Down

0 comments on commit cdb182d

Please sign in to comment.