processortest

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNopMetricsProcessor

func NewNopMetricsProcessor(nextMetricsProcessor consumer.MetricsConsumer) consumer.MetricsConsumer

NewNopMetricsProcessor creates an MetricsProcessor that just pass the received data to the nextMetricsProcessor.

func NewNopTraceProcessor

func NewNopTraceProcessor(nextTraceProcessor consumer.TraceConsumer) consumer.TraceConsumer

NewNopTraceProcessor creates an TraceProcessor that just pass the received data to the nextTraceProcessor.

Types

type NopProcessorFactory added in v0.2.2

type NopProcessorFactory struct{}

NopProcessorFactory allows the creation of the no operation processor via config, so it can be used in tests that cannot create it directly.

func (*NopProcessorFactory) CreateDefaultConfig added in v0.2.2

func (npf *NopProcessorFactory) CreateDefaultConfig() configmodels.Processor

CreateDefaultConfig creates the default configuration for the Processor.

func (*NopProcessorFactory) CreateMetricsProcessor added in v0.2.2

func (npf *NopProcessorFactory) CreateMetricsProcessor(
	logger *zap.Logger,
	nextConsumer consumer.MetricsConsumer,
	cfg configmodels.Processor,
) (processor.MetricsProcessor, error)

CreateMetricsProcessor creates a metrics processor based on this config. If the processor type does not support metrics or if the config is not valid error will be returned instead.

func (*NopProcessorFactory) CreateTraceProcessor added in v0.2.2

func (npf *NopProcessorFactory) CreateTraceProcessor(
	logger *zap.Logger,
	nextConsumer consumer.TraceConsumer,
	cfg configmodels.Processor,
) (processor.TraceProcessor, error)

CreateTraceProcessor creates a trace processor based on this config. If the processor type does not support tracing or if the config is not valid error will be returned instead.

func (*NopProcessorFactory) Type added in v0.2.2

func (npf *NopProcessorFactory) Type() string

Type gets the type of the Processor created by this factory.

Jump to

Keyboard shortcuts

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