Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory( cfgType config.Type, createDefaultConfig CreateDefaultConfig, options ...FactoryOption) component.ReceiverFactory
NewFactory returns a component.ReceiverFactory.
Types ¶
type CreateDefaultConfig ¶
CreateDefaultConfig is the equivalent of component.ReceiverFactory.CreateDefaultConfig()
type CreateLogsReceiver ¶ added in v0.7.0
type CreateLogsReceiver func(context.Context, component.ReceiverCreateParams, config.Receiver, consumer.Logs) (component.LogsReceiver, error)
CreateLogsReceiver is the equivalent of component.ReceiverFactory.CreateLogsReceiver()
type CreateMetricsReceiver ¶
type CreateMetricsReceiver func(context.Context, component.ReceiverCreateParams, config.Receiver, consumer.Metrics) (component.MetricsReceiver, error)
CreateMetricsReceiver is the equivalent of component.ReceiverFactory.CreateMetricsReceiver()
type CreateTracesReceiver ¶ added in v0.25.0
type CreateTracesReceiver func(context.Context, component.ReceiverCreateParams, config.Receiver, consumer.Traces) (component.TracesReceiver, error)
CreateTracesReceiver is the equivalent of component.ReceiverFactory.CreateTracesReceiver()
type FactoryOption ¶
type FactoryOption func(o *factory)
FactoryOption apply changes to ReceiverOptions.
func WithLogs ¶ added in v0.7.0
func WithLogs(createLogsReceiver CreateLogsReceiver) FactoryOption
WithLogs overrides the default "error not supported" implementation for CreateLogsReceiver.
func WithMetrics ¶
func WithMetrics(createMetricsReceiver CreateMetricsReceiver) FactoryOption
WithMetrics overrides the default "error not supported" implementation for CreateMetricsReceiver.
func WithTraces ¶
func WithTraces(createTracesReceiver CreateTracesReceiver) FactoryOption
WithTraces overrides the default "error not supported" implementation for CreateTracesReceiver.