Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfigManager ¶
type ClientConfigManager interface { GetSamplingStrategy(ctx context.Context, serviceName string) (*api_v2.SamplingStrategyResponse, error) GetBaggageRestrictions(ctx context.Context, 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(ctx context.Context, serviceName string) ([]*baggage.BaggageRestriction, error)
GetBaggageRestrictions returns baggage restrictions from server.
func (*ManagerWithMetrics) GetSamplingStrategy ¶
func (m *ManagerWithMetrics) GetSamplingStrategy(ctx context.Context, serviceName string) (*api_v2.SamplingStrategyResponse, error)
GetSamplingStrategy returns sampling strategy from server.
Click to show internal directories.
Click to hide internal directories.