Documentation ¶
Index ¶
- type Factory
- func (f *Factory) AddFlags(flagSet *flag.FlagSet)
- func (f *Factory) Close() error
- func (f *Factory) CreateArchiveSpanReader() (spanstore.Reader, error)
- func (f *Factory) CreateArchiveSpanWriter() (spanstore.Writer, error)
- func (f *Factory) CreateDependencyReader() (dependencystore.Reader, error)
- func (f *Factory) CreateLock() (distributedlock.Lock, error)
- func (f *Factory) CreateSamplingStore(maxBuckets int) (samplingstore.Store, error)
- func (f *Factory) CreateSpanReader() (spanstore.Reader, error)
- func (f *Factory) CreateSpanWriter() (spanstore.Writer, error)
- func (f *Factory) InitFromOptions(o *Options)
- func (f *Factory) InitFromViper(v *viper.Viper, logger *zap.Logger)
- func (f *Factory) Initialize(metricsFactory metrics.Factory, logger *zap.Logger) error
- type IndexConfig
- type Options
- func (opt *Options) AddFlags(flagSet *flag.FlagSet)
- func (opt *Options) Get(namespace string) *config.Configuration
- func (opt *Options) GetPrimary() *config.Configuration
- func (opt *Options) InitFromViper(v *viper.Viper)
- func (opt *Options) TagIndexBlacklist() []string
- func (opt *Options) TagIndexWhitelist() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct { Options *Options // contains filtered or unexported fields }
Factory implements storage.Factory for Cassandra backend.
func (*Factory) CreateArchiveSpanReader ¶
CreateArchiveSpanReader implements storage.ArchiveFactory
func (*Factory) CreateArchiveSpanWriter ¶
CreateArchiveSpanWriter implements storage.ArchiveFactory
func (*Factory) CreateDependencyReader ¶
func (f *Factory) CreateDependencyReader() (dependencystore.Reader, error)
CreateDependencyReader implements storage.Factory
func (*Factory) CreateLock ¶
func (f *Factory) CreateLock() (distributedlock.Lock, error)
CreateLock implements storage.SamplingStoreFactory
func (*Factory) CreateSamplingStore ¶
func (f *Factory) CreateSamplingStore(maxBuckets int) (samplingstore.Store, error)
CreateSamplingStore implements storage.SamplingStoreFactory
func (*Factory) CreateSpanReader ¶
CreateSpanReader implements storage.Factory
func (*Factory) CreateSpanWriter ¶
CreateSpanWriter implements storage.Factory
func (*Factory) InitFromOptions ¶
InitFromOptions initializes factory from options.
func (*Factory) InitFromViper ¶
InitFromViper implements plugin.Configurable
type IndexConfig ¶
type IndexConfig struct { Logs bool `mapstructure:"logs"` Tags bool `mapstructure:"tags"` ProcessTags bool `mapstructure:"process_tags"` TagBlackList string `mapstructure:"tag_blacklist"` TagWhiteList string `mapstructure:"tag_whitelist"` }
IndexConfig configures indexing. By default all indexing is enabled.
type Options ¶
type Options struct { Primary namespaceConfig `mapstructure:",squash"` SpanStoreWriteCacheTTL time.Duration `mapstructure:"span_store_write_cache_ttl"` Index IndexConfig `mapstructure:"index"` // contains filtered or unexported fields }
Options contains various type of Cassandra configs and provides the ability to bind them to command line flag and apply overlays, so that some configurations (e.g. archive) may be underspecified and infer the rest of its parameters from primary.
func NewOptions ¶
NewOptions creates a new Options struct.
func (*Options) Get ¶
func (opt *Options) Get(namespace string) *config.Configuration
Get returns auxiliary named configuration.
func (*Options) GetPrimary ¶
func (opt *Options) GetPrimary() *config.Configuration
GetPrimary returns primary configuration.
func (*Options) InitFromViper ¶
InitFromViper initializes Options with properties from viper
func (*Options) TagIndexBlacklist ¶
TagIndexBlacklist returns the list of blacklisted tags
func (*Options) TagIndexWhitelist ¶
TagIndexWhitelist returns the list of whitelisted tags