Documentation ¶
Index ¶
- func FixMapping(tb es.TemplateBuilder, mapping string, shards, replicas int64, esPrefix string, ...) (string, error)
- func GetDependenciesMappings(tb es.TemplateBuilder, shards, replicas int64, esVersion uint) (string, error)
- func GetSpanServiceMappings(tb es.TemplateBuilder, shards, replicas int64, esVersion uint, esPrefix string, ...) (string, string, error)
- func LoadMapping(name string) string
- 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) CreateSpanReader() (spanstore.Reader, error)
- func (f *Factory) CreateSpanWriter() (spanstore.Writer, error)
- func (f *Factory) InitFromOptions(o Options)
- func (f *Factory) InitFromViper(v *viper.Viper)
- func (f *Factory) Initialize(metricsFactory metrics.Factory, logger *zap.Logger) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixMapping ¶ added in v1.22.0
func FixMapping(tb es.TemplateBuilder, mapping string, shards, replicas int64, esPrefix string, useILM bool) (string, error)
FixMapping parses the index mappings with given values and returns parsed template as string
func GetDependenciesMappings ¶ added in v1.18.1
func GetDependenciesMappings(tb es.TemplateBuilder, shards, replicas int64, esVersion uint) (string, error)
GetDependenciesMappings returns dependencies mappings
func GetSpanServiceMappings ¶ added in v1.18.1
func GetSpanServiceMappings(tb es.TemplateBuilder, shards, replicas int64, esVersion uint, esPrefix string, useILM bool) (string, string, error)
GetSpanServiceMappings returns span and service mappings
func LoadMapping ¶ added in v1.22.0
LoadMapping returns index mappings from go assets as strings
Types ¶
type Factory ¶
type Factory struct { Options *Options // contains filtered or unexported fields }
Factory implements storage.Factory for Elasticsearch backend.
func (*Factory) CreateArchiveSpanReader ¶ added in v1.10.0
CreateArchiveSpanReader implements storage.ArchiveFactory
func (*Factory) CreateArchiveSpanWriter ¶ added in v1.10.0
CreateArchiveSpanWriter implements storage.ArchiveFactory
func (*Factory) CreateDependencyReader ¶
func (f *Factory) CreateDependencyReader() (dependencystore.Reader, error)
CreateDependencyReader implements storage.Factory
func (*Factory) CreateSpanReader ¶
CreateSpanReader implements storage.Factory
func (*Factory) CreateSpanWriter ¶
CreateSpanWriter implements storage.Factory
func (*Factory) InitFromOptions ¶ added in v1.18.0
InitFromOptions configures factory from Options struct.
func (*Factory) InitFromViper ¶
InitFromViper implements plugin.Configurable
type Options ¶
type Options struct { Primary namespaceConfig `mapstructure:",squash"` // contains filtered or unexported fields }
Options contains various type of Elasticsearch 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 NewOptionsFromConfig ¶ added in v1.18.1
func NewOptionsFromConfig(primary config.Configuration, archive config.Configuration) *Options
NewOptionsFromConfig creates Options from primary and archive config
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