Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeterministicSampler ¶
type DeterministicSampler struct { Config *config.DeterministicSamplerConfig Logger logger.Logger // contains filtered or unexported fields }
func (*DeterministicSampler) GetSampleRate ¶
func (*DeterministicSampler) Start ¶
func (d *DeterministicSampler) Start() error
type DynamicSampler ¶
type DynamicSampler struct { Config *config.DynamicSamplerConfig Logger logger.Logger Metrics metrics.Metrics // contains filtered or unexported fields }
func (*DynamicSampler) GetSampleRate ¶
func (*DynamicSampler) Start ¶
func (d *DynamicSampler) Start() error
type EMADynamicSampler ¶
type EMADynamicSampler struct { Config *config.EMADynamicSamplerConfig Logger logger.Logger Metrics metrics.Metrics // contains filtered or unexported fields }
func (*EMADynamicSampler) GetSampleRate ¶
func (*EMADynamicSampler) Start ¶
func (d *EMADynamicSampler) Start() error
type RulesBasedSampler ¶
type RulesBasedSampler struct { Config *config.RulesBasedSamplerConfig Logger logger.Logger Metrics metrics.Metrics // contains filtered or unexported fields }
func (*RulesBasedSampler) GetSampleRate ¶
func (*RulesBasedSampler) Start ¶
func (s *RulesBasedSampler) Start() error
type SamplerFactory ¶
type SamplerFactory struct { Config config.Config `inject:""` Logger logger.Logger `inject:""` Metrics metrics.Metrics `inject:"metrics"` }
SamplerFactory is used to create new samplers with common (injected) resources
func (*SamplerFactory) GetSamplerImplementationForKey ¶
func (s *SamplerFactory) GetSamplerImplementationForKey(samplerKey string, isLegacyKey bool) Sampler
GetSamplerImplementationForKey returns the sampler implementation for the given samplerKey (dataset for legacy keys, environment otherwise), or nil if it is not defined
type TotalThroughputSampler ¶
type TotalThroughputSampler struct { Config *config.TotalThroughputSamplerConfig Logger logger.Logger Metrics metrics.Metrics // contains filtered or unexported fields }
func (*TotalThroughputSampler) GetSampleRate ¶
func (*TotalThroughputSampler) Start ¶
func (d *TotalThroughputSampler) Start() error
Click to show internal directories.
Click to hide internal directories.