Documentation ¶
Overview ¶
Package badgerexporter implements Jaeger Badger storage as OpenTelemetry exporter.
Index ¶
- Constants
- func DefaultOptions() *badger.Options
- func GetFactory() storage.Factory
- type Config
- type Factory
- func (f Factory) CreateDefaultConfig() configmodels.Exporter
- func (f Factory) CreateMetricsExporter(_ context.Context, _ component.ExporterCreateParams, _ configmodels.Exporter) (component.MetricsExporter, error)
- func (f Factory) CreateTraceExporter(_ context.Context, params component.ExporterCreateParams, ...) (component.TraceExporter, error)
- func (f Factory) Type() configmodels.Type
- type OptionsFactory
Constants ¶
const (
// TypeStr defines type of the Badger exporter.
TypeStr = "jaeger_badger"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultOptions ¶
DefaultOptions creates Badger options supported by this exporter.
func GetFactory ¶
GetFactory returns singleton instance of the storage factory.
Types ¶
type Config ¶
type Config struct { badger.Options `mapstructure:",squash"` configmodels.ExporterSettings `mapstructure:",squash"` }
Config holds configuration of Jaeger Badger exporter/storage.
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory is the factory for Jaeger Cassandra exporter.
func NewFactory ¶
func NewFactory(optionsFactory OptionsFactory) *Factory
NewFactory creates new Factory instance.
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 (f 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 (f Factory) CreateTraceExporter( _ context.Context, params component.ExporterCreateParams, cfg configmodels.Exporter, ) (component.TraceExporter, error)
CreateTraceExporter creates Jaeger Cassandra trace exporter. This function implements OTEL component.ExporterFactory interface.
type OptionsFactory ¶
OptionsFactory returns initialized badger.Options structure.