For the complete documentation index, see llms.txt. This page is also available as Markdown.

Batch

Accepts spans, metric data points, and log records and places them into batches before they are exported. Batching improves compression and reduces the number of outgoing connections needed to transmit data. This processor batches on both a size trigger and a time trigger, applying to all three signal types in the pipeline.

Supported Telemetry

Metrics
Logs
Traces

Configuration

Bindplane docs - Batch - image 1

Batch settings

Parameter
Type
Required
Default
Description

Send Batch Size

Integer

Yes

8192

Number of spans, metric data points, or log records after which a batch will be sent regardless of the timeout.

Send Batch Max Size

Integer

Yes

0

The upper limit of the batch size. 0 means no upper limit. This property ensures that larger batches are split into smaller units. It must be greater than or equal to Send Batch Size.

Timeout

Duration

Yes

200ms

Time duration after which a batch will be sent regardless of size. Example: 2s (two seconds).

Examples

Batch on size with a two-second timeout

Send batches of 200 records, split anything larger than 1000, and flush whatever has accumulated after two seconds:

With these settings a batch is emitted as soon as 200 records accumulate, no batch ever exceeds 1000 records, and any partial batch is flushed after two seconds of inactivity.

Configuration Tips

  • Place the Batch processor as the last processor in a pipeline, immediately before the destination, so it batches the final shape of the telemetry.

  • Set Send Batch Max Size to bound payload size for destinations that reject large requests. Leaving it at 0 means batches are only bounded by Send Batch Size and may grow when Send Batch Size is high.

  • A lower Timeout sends data sooner at the cost of smaller, more frequent batches. A higher Timeout favors larger batches and better compression at the cost of added latency.

Troubleshooting

Data arrives at the destination with high latency

Symptoms: records take longer than expected to reach the destination under low throughput.

Solutions:

  1. Lower Timeout so partial batches flush sooner when traffic is light.

  2. Lower Send Batch Size if you are waiting on the size trigger before the timeout fires.

Destination rejects requests as too large

Symptoms: the destination returns payload-too-large or request-size errors.

Solutions:

  1. Set Send Batch Max Size to a value the destination accepts so oversized batches are split before export.

  2. Confirm Send Batch Max Size is greater than or equal to Send Batch Size; a max size below the send size is invalid.

Standalone Processor

Last updated

Was this helpful?