Version: v1.19.1 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 0




This section is empty.


This section is empty.


func NewFactory

func NewFactory(
	cfgType configmodels.Type,
	createDefaultConfig CreateDefaultConfig,
	options ...FactoryOption) component.ReceiverFactory

NewFactory returns a component.ReceiverFactory.


type CreateDefaultConfig

type CreateDefaultConfig func() configmodels.Receiver

CreateDefaultConfig is the equivalent of component.ReceiverFactory.CreateDefaultConfig()

type CreateLogsReceiver

CreateLogsReceiver is the equivalent of component.ReceiverFactory.CreateLogsReceiver()

type CreateMetricsReceiver

CreateMetricsReceiver is the equivalent of component.ReceiverFactory.CreateMetricsReceiver()

type CreateTraceReceiver

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL