batch

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package batch provides an otelcol.processor.batch component.

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	Timeout:       200 * time.Millisecond,
	SendBatchSize: 8192,
}

DefaultArguments holds default settings for Arguments.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Timeout          time.Duration `river:"timeout,attr,optional"`
	SendBatchSize    uint32        `river:"send_batch_size,attr,optional"`
	SendBatchMaxSize uint32        `river:"send_batch_max_size,attr,optional"`

	// Output configures where to send processed data. Required.
	Output *otelcol.ConsumerArguments `river:"output,block"`
}

Arguments configures the otelcol.processor.batch component.

func (Arguments) Convert

func (args Arguments) Convert() otelconfig.Processor

Convert implements processor.Arguments.

func (Arguments) Exporters

Exporters implements processor.Arguments.

func (Arguments) Extensions

func (args Arguments) Extensions() map[otelconfig.ComponentID]otelcomponent.Extension

Extensions implements processor.Arguments.

func (Arguments) NextConsumers

func (args Arguments) NextConsumers() *otelcol.ConsumerArguments

NextConsumers implements processor.Arguments.

func (*Arguments) UnmarshalRiver

func (args *Arguments) UnmarshalRiver(f func(interface{}) error) error

UnmarshalRiver implements river.Unmarshaler. It applies defaults to args and validates settings provided by the user.

Jump to

Keyboard shortcuts

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