remotesource

package
v0.120.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemoteSource

func NewRemoteSource(
	conn *grpc.ClientConn,
	grpcClientSettings *configgrpc.ClientConfig,
	reloadInterval time.Duration,
) (source.Source, io.Closer)

NewRemoteSource returns a StrategyStore that delegates to the configured Jaeger gRPC endpoint, making extension-configured enhancements (header additions only for now) to the gRPC context of every outbound gRPC call. Note: it would be nice to expand the configuration surface to include an optional TTL-based caching behavior for service-specific outbound GetSamplingStrategy calls.

Types

type ConfigManagerProxy

type ConfigManagerProxy struct {
	// contains filtered or unexported fields
}

ConfigManagerProxy returns sampling decisions from collector over gRPC.

func NewConfigManager

func NewConfigManager(conn *grpc.ClientConn) *ConfigManagerProxy

NewConfigManager creates gRPC sampling manager.

func (*ConfigManagerProxy) GetSamplingStrategy

func (s *ConfigManagerProxy) GetSamplingStrategy(ctx context.Context, serviceName string) (*api_v2.SamplingStrategyResponse, error)

GetSamplingStrategy returns sampling strategies from collector.

Jump to

Keyboard shortcuts

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