Documentation ¶
Index ¶
- func GetHTTPRoundTripper(c *Configuration, logger *zap.Logger) (http.RoundTripper, error)
- func NewClient(c *Configuration, logger *zap.Logger, metricsFactory metrics.Factory) (es.Client, error)
- type Configuration
- func (c *Configuration) ApplyDefaults(source *Configuration)
- func (c *Configuration) GetIndexRolloverFrequencySamplingDuration() time.Duration
- func (c *Configuration) GetIndexRolloverFrequencyServicesDuration() time.Duration
- func (c *Configuration) GetIndexRolloverFrequencySpansDuration() time.Duration
- func (c *Configuration) TagKeysAsFields() ([]string, error)
- func (c *Configuration) Validate() error
- type TagsAsFields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPRoundTripper ¶ added in v1.19.0
func GetHTTPRoundTripper(c *Configuration, logger *zap.Logger) (http.RoundTripper, error)
GetHTTPRoundTripper returns configured http.RoundTripper
Types ¶
type Configuration ¶
type Configuration struct { Servers []string `mapstructure:"server_urls" valid:"required,url"` RemoteReadClusters []string `mapstructure:"remote_read_clusters"` Username string `mapstructure:"username"` Password string `mapstructure:"password" json:"-"` TokenFilePath string `mapstructure:"token_file"` PasswordFilePath string `mapstructure:"password_file"` AllowTokenFromContext bool `mapstructure:"-"` Sniffer bool `mapstructure:"sniffer"` // https://github.com/olivere/elastic/wiki/Sniffing SnifferTLSEnabled bool `mapstructure:"sniffer_tls_enabled"` MaxDocCount int `mapstructure:"-"` // Defines maximum number of results to fetch from storage per query MaxSpanAge time.Duration `mapstructure:"-"` // configures the maximum lookback on span reads NumShards int64 `mapstructure:"num_shards"` NumReplicas int64 `mapstructure:"num_replicas"` PrioritySpanTemplate int64 `mapstructure:"priority_span_template"` PriorityServiceTemplate int64 `mapstructure:"priority_service_template"` PriorityDependenciesTemplate int64 `mapstructure:"priority_dependencies_template"` Timeout time.Duration `mapstructure:"-"` BulkSize int `mapstructure:"-"` BulkWorkers int `mapstructure:"-"` BulkActions int `mapstructure:"-"` BulkFlushInterval time.Duration `mapstructure:"-"` IndexPrefix string `mapstructure:"index_prefix"` IndexDateLayoutSpans string `mapstructure:"-"` IndexDateLayoutServices string `mapstructure:"-"` IndexDateLayoutSampling string `mapstructure:"-"` IndexDateLayoutDependencies string `mapstructure:"-"` IndexRolloverFrequencySpans string `mapstructure:"-"` IndexRolloverFrequencyServices string `mapstructure:"-"` IndexRolloverFrequencySampling string `mapstructure:"-"` AdaptiveSamplingLookback time.Duration `mapstructure:"-"` Tags TagsAsFields `mapstructure:"tags_as_fields"` Enabled bool `mapstructure:"-"` TLS tlscfg.Options `mapstructure:"tls"` UseReadWriteAliases bool `mapstructure:"use_aliases"` CreateIndexTemplates bool `mapstructure:"create_mappings"` UseILM bool `mapstructure:"use_ilm"` Version uint `mapstructure:"version"` LogLevel string `mapstructure:"log_level"` SendGetBodyAs string `mapstructure:"send_get_body_as"` }
Configuration describes the configuration properties needed to connect to an ElasticSearch cluster
func (*Configuration) ApplyDefaults ¶ added in v0.6.0
func (c *Configuration) ApplyDefaults(source *Configuration)
ApplyDefaults copies settings from source unless its own value is non-zero.
func (*Configuration) GetIndexRolloverFrequencySamplingDuration ¶ added in v1.55.0
func (c *Configuration) GetIndexRolloverFrequencySamplingDuration() time.Duration
GetIndexRolloverFrequencySamplingDuration returns jaeger-sampling index rollover frequency duration
func (*Configuration) GetIndexRolloverFrequencyServicesDuration ¶ added in v1.23.0
func (c *Configuration) GetIndexRolloverFrequencyServicesDuration() time.Duration
GetIndexRolloverFrequencyServicesDuration returns jaeger-service index rollover frequency duration
func (*Configuration) GetIndexRolloverFrequencySpansDuration ¶ added in v1.23.0
func (c *Configuration) GetIndexRolloverFrequencySpansDuration() time.Duration
GetIndexRolloverFrequencySpansDuration returns jaeger-span index rollover frequency duration
func (*Configuration) TagKeysAsFields ¶ added in v1.19.0
func (c *Configuration) TagKeysAsFields() ([]string, error)
TagKeysAsFields returns tags from the file and command line merged
func (*Configuration) Validate ¶ added in v1.55.0
func (c *Configuration) Validate() error
type TagsAsFields ¶ added in v1.18.0
type TagsAsFields struct { // Store all tags as object fields, instead nested objects AllAsFields bool `mapstructure:"all"` // Dot replacement for tag keys when stored as object fields DotReplacement string `mapstructure:"dot_replacement"` // File path to tag keys which should be stored as object fields File string `mapstructure:"config_file"` // Comma delimited list of tags to store as object fields Include string `mapstructure:"include"` }
TagsAsFields holds configuration for tag schema. By default Jaeger stores tags in an array of nested objects. This configurations allows to store tags as object fields for better Kibana support.