Documentation ¶
Index ¶
- func AddFlags(flagSet *flag.FlagSet)
- func NewStrategyStore(options Options, logger *zap.Logger) (ss.StrategyStore, error)
- type Factory
- func (f *Factory) AddFlags(flagSet *flag.FlagSet)
- func (f *Factory) CreateStrategyStore() (strategystore.StrategyStore, strategystore.Aggregator, error)
- func (f *Factory) InitFromViper(v *viper.Viper, logger *zap.Logger)
- func (f *Factory) Initialize(_ metrics.Factory, _ storage.SamplingStoreFactory, logger *zap.Logger) error
- type Options
Constants ¶
This section is empty.
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, strategystore.Aggregator, error)
CreateStrategyStore implements strategystore.Factory
func (*Factory) InitFromViper ¶
InitFromViper implements plugin.Configurable
func (*Factory) Initialize ¶
func (f *Factory) Initialize(_ metrics.Factory, _ storage.SamplingStoreFactory, logger *zap.Logger) error
Initialize implements strategystore.Factory
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.