Documentation
¶
Index ¶
Constants ¶
View Source
const (
// SamplingStrategiesFile contains the name of CLI opions for config file.
SamplingStrategiesFile = "sampling.strategies-file"
)
Variables ¶
This section is empty.
Functions ¶
func NewStrategyStore ¶
NewStrategyStore creates a strategy store that holds static sampling strategies.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory implements strategystore.Factory for a static strategy store.
func (*Factory) CreateStrategyStore ¶
func (f *Factory) CreateStrategyStore() (strategystore.StrategyStore, error)
CreateStrategyStore implements strategystore.Factory
func (*Factory) InitFromViper ¶
InitFromViper implements plugin.Configurable
type Options ¶
type Options struct {
// StrategiesFile is the path for the sampling strategies file in JSON format
StrategiesFile string
// ReloadInterval is the time interval to check and reload sampling strategies file
ReloadInterval time.Duration
}
Options holds configuration for the static sampling strategy store.
Click to show internal directories.
Click to hide internal directories.