6.5. Data Batching #

For data batching, the processor batch is used — an open OpenTelemetry component for bundling data packets and controlling the data transmission mechanism. Batching enables compression and reduces the number of outbound connections required for data transfer. It is highly recommended to always enable the data batching processor.

The processor should be added to the processors section and configured.

Configuration example:

processors:
  batch:
    send_batch_size: 8192
    timeout: 10s

service:
  pipelines:
    metrics:
      exporters:
        # ...
      processors:
        - batch
      receivers:
        # ...