Documentation ¶
Index ¶
- func NewLogExporter(_ context.Context, _ component.ExporterCreateParams, ...) (component.LogExporter, error)
- func NewMetricsExporter(_ context.Context, _ component.ExporterCreateParams, ...) (component.MetricsExporter, error)
- func NewTraceExporter(ctx context.Context, params component.ExporterCreateParams, ...) (component.TraceExporter, error)
- type Config
- type Factory
- func (f *Factory) CreateDefaultConfig() configmodels.Exporter
- func (f *Factory) CreateLogExporter(ctx context.Context, params component.ExporterCreateParams, ...) (component.LogExporter, error)
- func (f *Factory) CreateMetricsExporter(ctx context.Context, params component.ExporterCreateParams, ...) (component.MetricsExporter, error)
- func (f *Factory) CreateTraceExporter(ctx context.Context, params component.ExporterCreateParams, ...) (component.TraceExporter, error)
- func (f *Factory) Type() configmodels.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogExporter ¶
func NewLogExporter( _ context.Context, _ component.ExporterCreateParams, config configmodels.Exporter, ) (component.LogExporter, error)
NewLogExporter creates an OTLP log exporter.
func NewMetricsExporter ¶
func NewMetricsExporter( _ context.Context, _ component.ExporterCreateParams, config configmodels.Exporter, ) (component.MetricsExporter, error)
NewMetricsExporter creates an OTLP metrics exporter.
func NewTraceExporter ¶
func NewTraceExporter( ctx context.Context, params component.ExporterCreateParams, config configmodels.Exporter, ) (component.TraceExporter, error)
NewTraceExporter creates an OTLP trace exporter.
Types ¶
type Config ¶
type Config struct { configmodels.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. configgrpc.GRPCClientSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. // The number of workers that send the gRPC requests. NumWorkers int `mapstructure:"num_workers"` }
Config defines configuration for OpenCensus exporter.
type Factory ¶
type Factory struct { }
Factory is the factory for OpenCensus exporter.
func (*Factory) CreateDefaultConfig ¶
func (f *Factory) CreateDefaultConfig() configmodels.Exporter
CreateDefaultConfig creates the default configuration for exporter.
func (*Factory) CreateLogExporter ¶
func (f *Factory) CreateLogExporter( ctx context.Context, params component.ExporterCreateParams, cfg configmodels.Exporter, ) (component.LogExporter, error)
CreateLogExporter creates a log exporter based on this config.
func (*Factory) CreateMetricsExporter ¶
func (f *Factory) CreateMetricsExporter( ctx context.Context, params component.ExporterCreateParams, cfg configmodels.Exporter, ) (component.MetricsExporter, error)
CreateMetricsExporter creates a metrics exporter based on this config.
func (*Factory) CreateTraceExporter ¶
func (f *Factory) CreateTraceExporter( ctx context.Context, params component.ExporterCreateParams, cfg configmodels.Exporter, ) (component.TraceExporter, error)
CreateTraceExporter creates a trace exporter based on this config.
func (*Factory) Type ¶
func (f *Factory) Type() configmodels.Type
Type gets the type of the Exporter config created by this factory.
Click to show internal directories.
Click to hide internal directories.