configmanager

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfigManager

type ClientConfigManager interface {
	GetSamplingStrategy(serviceName string) (*sampling.SamplingStrategyResponse, error)
	GetBaggageRestrictions(serviceName string) ([]*baggage.BaggageRestriction, error)
}

ClientConfigManager decides: 1) which sampling strategy a given service should be using 2) which baggage restrictions a given service should be using.

type ManagerWithMetrics

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

ManagerWithMetrics is manager with metrics integration.

func WrapWithMetrics

func WrapWithMetrics(manager ClientConfigManager, mFactory metrics.Factory) *ManagerWithMetrics

WrapWithMetrics wraps ClientConfigManager and creates metrics for its invocations.

func (*ManagerWithMetrics) GetBaggageRestrictions

func (m *ManagerWithMetrics) GetBaggageRestrictions(serviceName string) ([]*baggage.BaggageRestriction, error)

GetBaggageRestrictions returns baggage restrictions from server.

func (*ManagerWithMetrics) GetSamplingStrategy

func (m *ManagerWithMetrics) GetSamplingStrategy(serviceName string) (*sampling.SamplingStrategyResponse, error)

GetSamplingStrategy returns sampling strategy from server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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