Help us shape the future of Go! Take the 2026 Go Developer Survey

static

package
v1.63.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(flagSet *flag.FlagSet)

AddFlags adds flags for Options

func NewProvider

func NewProvider(options Options, logger *zap.Logger) (ss.Provider, error)

NewProvider creates a strategy store that holds static sampling strategies.

Types

type Factory

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

Factory implements samplingstrategy.Factory for a static strategy store.

func NewFactory

func NewFactory() *Factory

NewFactory creates a new Factory.

func (*Factory) AddFlags

func (*Factory) AddFlags(flagSet *flag.FlagSet)

AddFlags implements plugin.Configurable

func (*Factory) Close

func (*Factory) Close() error

Close closes the factory.

func (*Factory) CreateStrategyProvider

func (f *Factory) CreateStrategyProvider() (samplingstrategy.Provider, samplingstrategy.Aggregator, error)

CreateStrategyProvider implements samplingstrategy.Factory

func (*Factory) InitFromViper

func (f *Factory) InitFromViper(v *viper.Viper, _ *zap.Logger)

InitFromViper implements plugin.Configurable

func (*Factory) Initialize

func (f *Factory) Initialize(_ metrics.Factory, _ storage.SamplingStoreFactory, logger *zap.Logger) error

Initialize implements samplingstrategy.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
	// Flag for enabling possibly breaking change which includes default operations level
	// strategies when calculating Ratelimiting type service level strategy
	// more information https://github.com/jaegertracing/jaeger/issues/5270
	IncludeDefaultOpStrategies bool
}

Options holds configuration for the static sampling strategy store.

func (*Options) InitFromViper

func (opts *Options) InitFromViper(v *viper.Viper) *Options

InitFromViper initializes Options with properties from viper

Jump to

Keyboard shortcuts

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