Documentation ¶
Index ¶
- func NewFactory(cfgType configmodels.Type, createDefaultConfig CreateDefaultConfig, ...) component.ReceiverFactory
- type CreateDefaultConfig
- type CreateLogsReceiver
- type CreateMetricsReceiver
- type CreateTraceReceiver
- type FactoryOption
- func WithCustomUnmarshaler(customUnmarshaler component.CustomUnmarshaler) FactoryOption
- func WithLogs(createLogsReceiver CreateLogsReceiver) FactoryOption
- func WithMetrics(createMetricsReceiver CreateMetricsReceiver) FactoryOption
- func WithTraces(createTraceReceiver CreateTraceReceiver) FactoryOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory( cfgType configmodels.Type, createDefaultConfig CreateDefaultConfig, options ...FactoryOption) component.ReceiverFactory
NewFactory returns a component.ReceiverFactory.
Types ¶
type CreateDefaultConfig ¶
type CreateDefaultConfig func() configmodels.Receiver
CreateDefaultConfig is the equivalent of component.ReceiverFactory.CreateDefaultConfig()
type CreateLogsReceiver ¶
type CreateLogsReceiver func(context.Context, component.ReceiverCreateParams, configmodels.Receiver, consumer.LogsConsumer) (component.LogsReceiver, error)
CreateLogsReceiver is the equivalent of component.ReceiverFactory.CreateLogsReceiver()
type CreateMetricsReceiver ¶
type CreateMetricsReceiver func(context.Context, component.ReceiverCreateParams, configmodels.Receiver, consumer.MetricsConsumer) (component.MetricsReceiver, error)
CreateMetricsReceiver is the equivalent of component.ReceiverFactory.CreateMetricsReceiver()
type CreateTraceReceiver ¶
type CreateTraceReceiver func(context.Context, component.ReceiverCreateParams, configmodels.Receiver, consumer.TracesConsumer) (component.TracesReceiver, error)
CreateTraceReceiver is the equivalent of component.ReceiverFactory.CreateTracesReceiver()
type FactoryOption ¶
type FactoryOption func(o *factory)
FactoryOption apply changes to ReceiverOptions.
func WithCustomUnmarshaler ¶
func WithCustomUnmarshaler(customUnmarshaler component.CustomUnmarshaler) FactoryOption
WithCustomUnmarshaler implements component.ConfigUnmarshaler.
func WithLogs ¶
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(createTraceReceiver CreateTraceReceiver) FactoryOption
WithTraces overrides the default "error not supported" implementation for CreateTraceReceiver.