Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateLogsFunc ¶
CreateLogsFunc is the equivalent of Factory.CreateLogs.
func (CreateLogsFunc) CreateLogsExporter ¶
func (f CreateLogsFunc) CreateLogsExporter(ctx context.Context, set Settings, cfg component.Config) (Logs, error)
CreateLogsExporter implements Factory.CreateLogsExporter().
type CreateMetricsFunc ¶
CreateMetricsFunc is the equivalent of Factory.CreateMetrics.
func (CreateMetricsFunc) CreateMetricsExporter ¶
func (f CreateMetricsFunc) CreateMetricsExporter(ctx context.Context, set Settings, cfg component.Config) (Metrics, error)
CreateMetricsExporter implements ExporterFactory.CreateMetricsExporter().
type CreateTracesFunc ¶
CreateTracesFunc is the equivalent of Factory.CreateTraces.
func (CreateTracesFunc) CreateTracesExporter ¶
func (f CreateTracesFunc) CreateTracesExporter(ctx context.Context, set Settings, cfg component.Config) (Traces, error)
CreateTracesExporter implements ExporterFactory.CreateTracesExporter().
type Factory ¶
type Factory interface { component.Factory // CreateTracesExporter creates a TracesExporter based on this config. // If the exporter type does not support tracing, // this function returns the error [component.ErrDataTypeIsNotSupported]. CreateTracesExporter(ctx context.Context, set Settings, cfg component.Config) (Traces, error) // TracesExporterStability gets the stability level of the TracesExporter. TracesExporterStability() component.StabilityLevel // CreateMetricsExporter creates a MetricsExporter based on this config. // If the exporter type does not support metrics, // this function returns the error [component.ErrDataTypeIsNotSupported]. CreateMetricsExporter(ctx context.Context, set Settings, cfg component.Config) (Metrics, error) // MetricsExporterStability gets the stability level of the MetricsExporter. MetricsExporterStability() component.StabilityLevel // CreateLogsExporter creates a LogsExporter based on the config. // If the exporter type does not support logs, // this function returns the error [component.ErrDataTypeIsNotSupported]. CreateLogsExporter(ctx context.Context, set Settings, cfg component.Config) (Logs, error) // LogsExporterStability gets the stability level of the LogsExporter. LogsExporterStability() component.StabilityLevel // contains filtered or unexported methods }
Factory is a factory interface for exporters. This interface cannot be directly implemented. Implementations must use the NewFactory to implement it.
func NewFactory ¶
func NewFactory(cfgType component.Type, createDefaultConfig component.CreateDefaultConfigFunc, options ...FactoryOption) Factory
NewFactory returns a Factory.
type FactoryOption ¶
type FactoryOption interface {
// contains filtered or unexported methods
}
FactoryOption apply changes to Factory.
func WithLogs ¶
func WithLogs(createLogs CreateLogsFunc, sl component.StabilityLevel) FactoryOption
WithLogs overrides the default "error not supported" implementation for CreateLogsExporter and the default "undefined" stability level.
func WithMetrics ¶
func WithMetrics(createMetrics CreateMetricsFunc, sl component.StabilityLevel) FactoryOption
WithMetrics overrides the default "error not supported" implementation for CreateMetricsExporter and the default "undefined" stability level.
func WithTraces ¶
func WithTraces(createTraces CreateTracesFunc, sl component.StabilityLevel) FactoryOption
WithTraces overrides the default "error not supported" implementation for CreateTracesExporter and the default "undefined" stability level.