Documentation ¶
Index ¶
- func NewNopMetricsProcessor(nextMetricsProcessor consumer.MetricsConsumer) consumer.MetricsConsumer
- func NewNopTraceProcessor(nextTraceProcessor consumer.TraceConsumer) consumer.TraceConsumer
- type NopProcessorFactory
- func (npf *NopProcessorFactory) CreateDefaultConfig() configmodels.Processor
- func (npf *NopProcessorFactory) CreateMetricsProcessor(logger *zap.Logger, nextConsumer consumer.MetricsConsumer, ...) (processor.MetricsProcessor, error)
- func (npf *NopProcessorFactory) CreateTraceProcessor(logger *zap.Logger, nextConsumer consumer.TraceConsumer, ...) (processor.TraceProcessor, error)
- func (npf *NopProcessorFactory) Type() string
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.