Skip to content

Commit 296e789

Browse files
authored
[chore] remove exported internal unnecessary constant (open-telemetry#11250)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
1 parent 20f73e2 commit 296e789

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/globalgates/globalgates.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ var NoopTracerProvider = featuregate.GlobalRegistry().MustRegister("service.noop
1515
featuregate.WithRegisterToVersion("v0.109.0"),
1616
featuregate.WithRegisterDescription("Sets a Noop OpenTelemetry TracerProvider to reduce memory allocations. This featuregate is incompatible with the zPages extension."))
1717

18-
const UseLocalHostAsDefaultHostID = "component.UseLocalHostAsDefaultHost"
19-
2018
// UseLocalHostAsDefaultHostfeatureGate is the feature gate that controls whether
2119
// server-like receivers and extensions such as the OTLP receiver use localhost as the default host for their endpoints.
2220
var _ = mustRegisterOrLoad(
2321
featuregate.GlobalRegistry(),
24-
UseLocalHostAsDefaultHostID,
22+
"component.UseLocalHostAsDefaultHost",
2523
featuregate.StageStable,
2624
featuregate.WithRegisterToVersion("v0.110.0"),
2725
featuregate.WithRegisterDescription("controls whether server-like receivers and extensions such as the OTLP receiver use localhost as the default host for their endpoints"),

0 commit comments

Comments
 (0)