grpc

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SamplingManager

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

SamplingManager returns sampling decisions from collector over gRPC.

func NewConfigManager

func NewConfigManager(conn *grpc.ClientConn) *SamplingManager

NewConfigManager creates gRPC sampling manager.

func (*SamplingManager) GetBaggageRestrictions

func (s *SamplingManager) GetBaggageRestrictions(serviceName string) ([]*baggage.BaggageRestriction, error)

GetBaggageRestrictions returns baggage restrictions from collector.

func (*SamplingManager) GetSamplingStrategy

func (s *SamplingManager) GetSamplingStrategy(serviceName string) (*sampling.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