Documentation ¶
Overview ¶
Package elasticsearchexporter implements Jaeger Elasticsearch storage as OpenTelemetry exporter.
Index ¶
- Constants
- func DefaultOptions() *es.Options
- type Config
- type Factory
- func (f Factory) CreateDefaultConfig() configmodels.Exporter
- func (Factory) CreateMetricsExporter(_ context.Context, _ component.ExporterCreateParams, _ configmodels.Exporter) (component.MetricsExporter, error)
- func (Factory) CreateTraceExporter(_ context.Context, params component.ExporterCreateParams, ...) (component.TraceExporter, error)
- func (Factory) Type() configmodels.Type
- type OptionsFactory
Constants ¶
const (
// TypeStr defines type of the Elasticsearch exporter.
TypeStr = "jaeger_elasticsearch"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultOptions ¶
DefaultOptions creates Elasticsearch options supported by this exporter.
Types ¶
type Config ¶
type Config struct { configmodels.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. es.Options `mapstructure:",squash"` }
Config holds configuration of Jaeger Elasticsearch exporter/storage.
type Factory ¶
type Factory struct {
OptionsFactory OptionsFactory
}
Factory is the factory for Jaeger Elasticsearch exporter.
func (Factory) CreateDefaultConfig ¶
func (f Factory) CreateDefaultConfig() configmodels.Exporter
CreateDefaultConfig returns default configuration of Factory. This function implements OTEL component.ExporterFactoryBase interface.
func (Factory) CreateMetricsExporter ¶
func (Factory) CreateMetricsExporter( _ context.Context, _ component.ExporterCreateParams, _ configmodels.Exporter, ) (component.MetricsExporter, error)
CreateMetricsExporter is not implemented. This function implements OTEL component.ExporterFactory interface.
func (Factory) CreateTraceExporter ¶
func (Factory) CreateTraceExporter( _ context.Context, params component.ExporterCreateParams, cfg configmodels.Exporter, ) (component.TraceExporter, error)
CreateTraceExporter creates Jaeger Elasticsearch trace exporter. This function implements OTEL component.ExporterFactory interface.
type OptionsFactory ¶
OptionsFactory returns initialized es.OptionsFactory structure.