Documentation
¶
Index ¶
- func MetricViews() []*view.View
- type Config
- type Factory
- func (f *Factory) CreateDefaultConfig() configmodels.Processor
- func (f *Factory) CreateMetricsProcessor(ctx context.Context, params component.ProcessorCreateParams, ...) (component.MetricsProcessor, error)
- func (f *Factory) CreateTraceProcessor(ctx context.Context, params component.ProcessorCreateParams, ...) (component.TraceProcessor, error)
- func (f *Factory) Type() configmodels.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricViews ¶
MetricViews returns the metrics views related to batching
Types ¶
type Config ¶
type Config struct { configmodels.ProcessorSettings `mapstructure:",squash"` // Timeout sets the time after which a batch will be sent regardless of size. Timeout time.Duration `mapstructure:"timeout,omitempty"` // SendBatchSize is the size of a batch which after hit, will trigger it to be sent. SendBatchSize uint32 `mapstructure:"send_batch_size,omitempty"` }
Config defines configuration for batch processor.
type Factory ¶
type Factory struct { }
Factory is the factory for batch processor.
func (*Factory) CreateDefaultConfig ¶
func (f *Factory) CreateDefaultConfig() configmodels.Processor
CreateDefaultConfig creates the default configuration for processor.
func (*Factory) CreateMetricsProcessor ¶
func (f *Factory) CreateMetricsProcessor( ctx context.Context, params component.ProcessorCreateParams, nextConsumer consumer.MetricsConsumer, c configmodels.Processor, ) (component.MetricsProcessor, error)
CreateMetricsProcessor creates a metrics processor based on this config.
func (*Factory) CreateTraceProcessor ¶
func (f *Factory) CreateTraceProcessor( ctx context.Context, params component.ProcessorCreateParams, nextConsumer consumer.TraceConsumer, c configmodels.Processor, ) (component.TraceProcessor, error)
CreateTraceProcessor creates a trace processor based on this config.
func (*Factory) Type ¶
func (f *Factory) Type() configmodels.Type
Type gets the type of the config created by this factory.
Click to show internal directories.
Click to hide internal directories.