localhostgate

package
v0.114.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

package localhostgate defines a feature gate that controls whether server-like receivers and extensions use localhost as the default host for their endpoints. This package is duplicated across core and contrib to avoid exposing the feature gate as part of the public API. To do this we define a `registerOrLoad` helper and try to register the gate in both modules. IMPORTANT NOTE: ANY CHANGES TO THIS PACKAGE MUST BE MIRRORED IN THE CORE COUNTERPART. See https://github.com/open-telemetry/opentelemetry-collector/blob/main/internal/localhostgate/featuregate.go

Index

Constants

View Source
const UseLocalHostAsDefaultHostID = "component.UseLocalHostAsDefaultHost"

Variables

View Source
var UseLocalHostAsDefaultHostfeatureGate = mustRegisterOrLoad(
	featuregate.GlobalRegistry(),
	UseLocalHostAsDefaultHostID,
	featuregate.StageStable,
	featuregate.WithRegisterToVersion("v0.111.0"),
	featuregate.WithRegisterDescription("controls whether server-like receivers and extensions such as the OTLP receiver use localhost as the default host for their endpoints"),
)

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.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL