> For the complete documentation index, see [llms.txt](https://docs.bindplane.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bindplane.com/integrations/processors/batch.md).

# Batch

### Description

The batch processor accepts spans, metrics, or logs and places them into batches. Batching helps better compress the data and reduce the number of outgoing connections required to transmit the data. This processor supports both size and time based batching.

### Supported Types

| Metrics | Logs | Traces |
| ------- | ---- | ------ |
| ✓       | ✓    | ✓      |

### Configuration Table

| Parameter              | Type   | Default | Description                                                                                                                                                                                               |
| ---------------------- | ------ | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| send\_batch\_size      | `int`  | `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 | int    | 0       | The upper limit of the batch size. 0 means no upper limit of the batch size. This property ensures that larger batches are split into smaller units. It must be greater than or equal to send batch size. |
| timeout                | string | 200ms   | Time duration after which a batch will be sent regardless of size. Example: 2s (two seconds).                                                                                                             |

### Example Configuration

Batch telemetry with the following options:

* Send batches of size 200
* Max batch size of 1000
* Build batches for up to two seconds

**Web Interface**

<figure><img src="/files/UKyjnwZAaer6tKSdTg7J" alt="Bindplane docs - Batch - image 1"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bindplane.com/integrations/processors/batch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
