Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ComponentType = component.MustNewType("remote_sampling")
ComponentType is the name of this extension in configuration.
var ID = component.NewID(ComponentType)
Functions ¶
func NewFactory ¶
NewFactory creates a factory for the jaeger remote sampling extension.
Types ¶
type AdaptiveConfig ¶
type AdaptiveSamplingComponents ¶
type AdaptiveSamplingComponents struct { SamplingStore samplingstore.Store DistLock *leaderelection.DistributedElectionParticipant Options *adaptive.Options }
AdaptiveSamplingComponents is a struct that holds the components needed for adaptive sampling.
func GetAdaptiveSamplingComponents ¶
func GetAdaptiveSamplingComponents(host component.Host) (*AdaptiveSamplingComponents, error)
GetAdaptiveSamplingComponents locates the `remotesampling` extension in Host and returns the sampling store and a loader/follower implementation, provided that the extension is configured with adaptive sampling (vs. file-based config).
type Config ¶
type Config struct { File *FileConfig `mapstructure:"file"` Adaptive *AdaptiveConfig `mapstructure:"adaptive"` HTTP *confighttp.ServerConfig `mapstructure:"http"` GRPC *configgrpc.ServerConfig `mapstructure:"grpc"` }
func (*Config) Unmarshal ¶
Unmarshal is a custom unmarshaler that allows the factory to provide default values for nested configs (like GRPC endpoint) yes still reset the pointers to nil if the config did not contain the corresponding sections. This is a workaround for the lack of opional fields support in OTEL confmap. Issue: https://github.com/open-telemetry/opentelemetry-collector/issues/10266
type FileConfig ¶
type FileConfig struct { // File specifies a local file as the source of sampling strategies. Path string `valid:"required" mapstructure:"path"` }