Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory( cfgType configmodels.Type, createDefaultConfig CreateDefaultConfig, options ...FactoryOption) component.ProcessorFactory
NewFactory returns a component.ProcessorFactory that only supports all types.
Types ¶
type CreateDefaultConfig ¶
type CreateDefaultConfig func() configmodels.Processor
CreateDefaultConfig is the equivalent of component.ProcessorFactory.CreateDefaultConfig()
type CreateLogProcessor ¶
type CreateLogProcessor func(context.Context, component.ProcessorCreateParams, configmodels.Processor, consumer.LogConsumer) (component.LogProcessor, error)
CreateMetricsProcessor is the equivalent of component.ProcessorFactory.CreateLogProcessor()
type CreateMetricsProcessor ¶
type CreateMetricsProcessor func(context.Context, component.ProcessorCreateParams, configmodels.Processor, consumer.MetricsConsumer) (component.MetricsProcessor, error)
CreateMetricsProcessor is the equivalent of component.ProcessorFactory.CreateMetricsProcessor()
type CreateTraceProcessor ¶
type CreateTraceProcessor func(context.Context, component.ProcessorCreateParams, configmodels.Processor, consumer.TraceConsumer) (component.TraceProcessor, error)
CreateTraceProcessor is the equivalent of component.ProcessorFactory.CreateTraceProcessor()
type FactoryOption ¶
type FactoryOption func(o *factory)
FactoryOption apply changes to ProcessorOptions.
func WithLogs ¶
func WithLogs(createLogProcessor CreateLogProcessor) FactoryOption
WithLogs overrides the default "error not supported" implementation for CreateLogReceiver.
func WithMetrics ¶
func WithMetrics(createMetricsProcessor CreateMetricsProcessor) FactoryOption
WithMetrics overrides the default "error not supported" implementation for CreateMetricsReceiver.
func WithTraces ¶
func WithTraces(createTraceProcessor CreateTraceProcessor) FactoryOption
WithTraces overrides the default "error not supported" implementation for CreateTraceReceiver.