grpc

package
v1.47.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigManagerProxy added in v1.42.0

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) GetBaggageRestrictions added in v1.42.0

func (s *ConfigManagerProxy) GetBaggageRestrictions(_ context.Context, _ string) ([]*baggage.BaggageRestriction, error)

GetBaggageRestrictions returns baggage restrictions from collector.

func (*ConfigManagerProxy) GetSamplingStrategy added in v1.42.0

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