processorhelper

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 108

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

CreateMetricsProcessor is the equivalent of component.ProcessorFactory.CreateLogProcessor()

type CreateMetricsProcessor

CreateMetricsProcessor is the equivalent of component.ProcessorFactory.CreateMetricsProcessor()

type CreateTraceProcessor

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.

Jump to

Keyboard shortcuts

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