Documentation ¶
Index ¶
- func AddFlags(flags *flag.FlagSet)
- func GetTags(v *viper.Viper) map[string]string
- type Factory
- func (f Factory) CreateDefaultConfig() configmodels.Processor
- func (f Factory) CreateMetricsProcessor(logger *zap.Logger, nextConsumer consumer.MetricsConsumerOld, ...) (component.MetricsProcessorOld, error)
- func (f Factory) CreateTraceProcessor(logger *zap.Logger, nextConsumer consumer.TraceConsumerOld, ...) (component.TraceProcessorOld, error)
- func (f Factory) Type() configmodels.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
type Factory struct { Wrapped *resourceprocessor.Factory Viper *viper.Viper }
Factory wraps resourceprocessor.Factory and makes the default config configurable via viper. For instance this enables using flags as default values in the config object.
func (Factory) CreateDefaultConfig ¶
func (f Factory) CreateDefaultConfig() configmodels.Processor
CreateDefaultConfig returns default configuration of Factory. This function implements OTEL component.ProcessorFactoryBase interface.
func (Factory) CreateMetricsProcessor ¶
func (f Factory) CreateMetricsProcessor( logger *zap.Logger, nextConsumer consumer.MetricsConsumerOld, cfg configmodels.Processor, ) (component.MetricsProcessorOld, error)
CreateMetricsProcessor creates a resource processor. This function implements component.ProcessorFactoryOld.
func (Factory) CreateTraceProcessor ¶
func (f Factory) CreateTraceProcessor( logger *zap.Logger, nextConsumer consumer.TraceConsumerOld, cfg configmodels.Processor, ) (component.TraceProcessorOld, error)
CreateTraceProcessor creates resource processor. This function implements OTEL component.ProcessorFactoryOld interface.
func (Factory) Type ¶
func (f Factory) Type() configmodels.Type
Type returns the type of the receiver.
Click to show internal directories.
Click to hide internal directories.