Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateLogsFunc ¶
CreateLogsFunc is the equivalent of Factory.CreateLogs.
func (CreateLogsFunc) CreateLogs ¶ added in v0.112.0
func (f CreateLogsFunc) CreateLogs(ctx context.Context, set Settings, cfg component.Config) (Logs, error)
CreateLogs implements Factory.CreateLogs.
type CreateMetricsFunc ¶
CreateMetricsFunc is the equivalent of Factory.CreateMetrics.
func (CreateMetricsFunc) CreateMetrics ¶ added in v0.112.0
func (f CreateMetricsFunc) CreateMetrics(ctx context.Context, set Settings, cfg component.Config) (Metrics, error)
CreateMetrics implements Factory.CreateMetrics.
type CreateTracesFunc ¶
CreateTracesFunc is the equivalent of Factory.CreateTraces.
func (CreateTracesFunc) CreateTraces ¶ added in v0.112.0
func (f CreateTracesFunc) CreateTraces(ctx context.Context, set Settings, cfg component.Config) (Traces, error)
CreateTraces implements Factory.CreateTraces.
type Factory ¶
type Factory interface { component.Factory // CreateTraces creates a Traces exporter based on this config. // If the exporter type does not support tracing, // this function returns the error [pipeline.ErrSignalNotSupported]. CreateTraces(ctx context.Context, set Settings, cfg component.Config) (Traces, error) // TracesStability gets the stability level of the Traces exporter. TracesStability() component.StabilityLevel // CreateMetrics creates a Metrics exporter based on this config. // If the exporter type does not support metrics, // this function returns the error [pipeline.ErrSignalNotSupported]. CreateMetrics(ctx context.Context, set Settings, cfg component.Config) (Metrics, error) // MetricsStability gets the stability level of the Metrics exporter. MetricsStability() component.StabilityLevel // CreateLogs creates a Logs exporter based on the config. // If the exporter type does not support logs, // this function returns the error [pipeline.ErrSignalNotSupported]. CreateLogs(ctx context.Context, set Settings, cfg component.Config) (Logs, error) // LogsStability gets the stability level of the Logs exporter. LogsStability() component.StabilityLevel // contains filtered or unexported methods }
Factory is 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 Factory.CreateLogs 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 Factory.CreateMetrics 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 Factory.CreateTraces and the default "undefined" stability level.
Directories ¶
Path | Synopsis |
---|---|
debugexporter
module
|
|
Package exporterhelper provides helper functions for exporters.
|
Package exporterhelper provides helper functions for exporters. |
exporterhelperprofiles
Module
|
|
xexporterhelper
Module
|
|
exporterprofiles
module
|
|
exportertest
module
|
|
loggingexporter
module
|
|
nopexporter
module
|
|
otlpexporter
module
|
|
otlphttpexporter
module
|
|
xexporter
module
|