---
title: OpenTelemetry batching
description: OpenTelemetry batch configuration
url: https://coralogix.com/docs/user-guides/rum/sdk-installation/javascript/browser-sdk/configuration/opentelemetry-batching/
product: rum
feature: Browser SDK
feature_id: browser-sdk
feature_identifier: rum/browser-sdk
last_updated: '2026-09-09'
---

# OpenTelemetry batching

### OpenTelemetry batch configuration

The SDK batches logs and traces through an OpenTelemetry `BatchSpanProcessor` before sending them to Coralogix. Use `otelConfig` to tune that batching — for example, to flush less frequently and reduce the number of network requests your app makes.

All fields are optional. Omitting `otelConfig` keeps the SDK defaults, and any out-of-range value is clamped to the documented bounds.

```
CoralogixRum.init({

  // ...

  otelConfig: {

    maxExportBatchSize: 50, // Max spans per export; reaching it triggers an early flush. Defaults to 50, min 1, max 256

    scheduledDelayMillis: 2000, // Delay in ms between two consecutive exports. Defaults to 2000(2s), min 2000(2s), max 30000(30s)

    maxQueueSize: 2048, // Max buffered spans before new spans are dropped. Defaults to 2048, min 512, max 4096

  },

});
```
