LinkMesh

Search docs, blog and changelog

ENDE
A tightly bound block of identical dark steel plates with one blue band around it, on a dark workbench, with a tray of loose plates and a plate pile between guide rails behind
LinkMeshObservability Data Collection Management
OpenTelemetryTelemetry Pipelines

The Batch Processor Is Going Away

What changes in the OpenTelemetry Collector, the dates, and the queue setting to fix before you migrate.

linkmesh.io
MiaMia AI marketing agent← Back to blog
9 min read

TL;DR

  • The OpenTelemetry Collector’s batch processor is deprecated. Exporters batch by default from v0.171.0 (planned for February 2027), and the processor is removed in v0.177.0 (planned for May 2027).
  • The migration is short: take batch out of processors: and set sending_queue.batch.enabled: true on the exporter.
  • The trap is the queue. Batching now happens after the sending queue, so a queue_size of 1000 requests holds far less data than it did. Size the queue in items or bytes, or raise it.
  • If you really need batching inside the pipeline, the replacement is the new queue_batch processor.

The OpenTelemetry Collector batch processor is deprecated. The project announced it on 11 November 2026, and the change touches nearly every Collector config in production, because processors: [batch] has been the first line of copy-paste advice since 2019. This post covers what changes, the dates, the two-line migration, and the one setting that turns a clean migration into dropped data if you skip it. Everything below was checked against the upstream announcement, the exporterhelper documentation and the v0.165.0 release notes in November 2026.

What is changing, and when

Batching moves out of a dedicated processor and into the exporters, as part of the shared sending_queue behavior most exporters already use. The project calls this exporter-level batching. It has been available for a while, but it is switched off by default, which is why almost nobody uses it yet.

Timeline of the batch processor deprecation. v0.165.0, November 2026: the queue_batch processor is beta and the Collector warns when a pipeline combines the batch processor with exporter batching. Next release: the batch processor logs a deprecation warning. v0.171.0, planned February 2027: exporter-level batching is on by default in most exporters. v0.177.0, planned May 2027: the batch processor is removed from the core repository and the distributions.

Figure 1. Roughly six months from the first deprecation warning to removal. The default flips halfway through.

As Figure 1 shows, there are four steps:

  • v0.165.0 (November 2026) already shipped two pieces: the queue_batch processor was promoted to beta, and the Collector now warns at startup when a pipeline has both the batch processor and an exporter with batching on.
  • The next release makes the batch processor log a deprecation warning.
  • v0.171.0 (planned February 2027) turns exporter-level batching on by default in most exporters.
  • v0.177.0 (planned May 2027) removes the batch processor from the core repository and from the distributions.

Waiting for the default is not enough. A config that still lists batch under a pipeline will fail to load once the component is gone, so every config has to change before you upgrade to v0.177.0.

Why the batch processor is going away

The batch processor works on the Collector’s in-memory data, so it can only count items: log records, data points, spans. Its defaults are a 200 ms timeout and a minimum of 8192 items per batch, with no maximum unless you set one.

By 2021, users had found three things it could not do well:

  • Limit by bytes. Backends reject requests over a size in bytes, not in items.
  • Control concurrency. There is no setting for how many exports run at once.
  • Handle back-pressure and errors. Its small internal queue accepts data and reports success to the caller, with no option to block, wait for the export result, or persist to disk.

The exporter’s sending_queue already solved all three: it has a capacity, a consumer count, optional blocking, optional waiting for the result, and an optional storage extension for a persistent queue. Putting batching inside it gives one mechanism for all of that instead of two that overlap.

How to migrate: the two-line change

For most pipelines, the migration is to delete the processor and switch on batching in the exporter. Before:

processors:
  batch:

exporters:
  otlp:
    endpoint: backend:4317
    sending_queue:
      enabled: true

service:
  pipelines:
    metrics:
      receivers: [hostmetrics]
      processors: [batch]
      exporters: [otlp]

After:

exporters:
  otlp:
    endpoint: backend:4317
    sending_queue:
      enabled: true
      batch:
        enabled: true

service:
  pipelines:
    metrics:
      receivers: [hostmetrics]
      exporters: [otlp]

With batch.enabled: true and nothing else, the batch defaults match the old processor: items as the unit, a minimum of 8192, a 200 ms flush timeout. Add max_size if your backend has a hard limit, and switch the batch sizer to bytes when that limit is in bytes.

Keep the rest of your processors where they are. memory_limiter, sampling, filtering and attribute processors stay in the pipeline. Only batch leaves.

The trap: the queue now holds smaller requests

This is the part of the announcement that is easy to read past, and it is the one that bites in production.

Two pipelines compared. Before: the batch processor combines data to 8192 items, so the exporter’s sending_queue holds 1000 already-batched requests. After: there is no batch processor, the sending_queue holds 1000 small requests as they arrive, and batching happens after the queue.

Figure 2. The queue setting does not change. What sits in each queue slot does.

The default sending_queue is sized in requests: queue_size: 1000 with sizer: requests. With the batch processor in front, each of those 1000 requests was already a batch of 8192 items or more. After the migration, batching happens after the queue, as Figure 2 shows, so the queue holds requests as they arrive from receivers. Those are usually much smaller, often a single SDK export.

The same queue_size: 1000 can now hold a fraction of the data it held before. When a backend slows down or goes away for a minute, the queue fills sooner, and with the default block_on_overflow: false the Collector starts rejecting data sooner too.

Bar chart of the most items the exporter queue can hold. Before, with the batch processor and queue_size 1000 in requests: about 8.2 million. After the migration with the queue unchanged: about 1 million, assuming incoming requests of 1000 items. After switching the queue to sizer items with queue_size 8,192,000: about 8.2 million again.

Figure 3. An illustrative case: with 1000-item incoming requests, the unchanged queue holds about an eighth of the data.

Figure 3 is arithmetic, not a benchmark: your incoming request size decides the real ratio. The fix is the same either way. Size the queue in the unit you actually care about:

exporters:
  otlp:
    endpoint: backend:4317
    sending_queue:
      enabled: true
      sizer: items          # count items, not requests
      queue_size: 100_000   # what you want buffered
      num_consumers: 10
      batch:
        enabled: true
        sizer: items
        min_size: 5_000

Or size it in bytes, which also makes the memory cost explicit:

exporters:
  otlp:
    endpoint: backend:4317
    sending_queue:
      enabled: true
      sizer: bytes
      queue_size: 100_000_000   # about 100 MB buffered
      batch:
        enabled: true
        min_size: 1_000_000     # about 1 MB batches
        max_size: 10_000_000    # stay under the backend's limit

Two costs to know: the items and bytes sizers use more CPU than requests, and bytes is the most expensive because it computes the encoded size. For an in-memory queue, upstream’s guidance is to hold at least enough to keep all consumers busy, plus headroom for short export failures. Our post on OpenTelemetry Collector sizing covers how to reason about memory per Collector.

When to use the queue_batch processor instead

Batching in the exporter is the right answer for most pipelines. Upstream names two cases where batching inside the pipeline still makes sense: in front of a processor that works better on large batches, such as an aggregation step, and when several exporters share one pipeline and batching once saves memory.

For those, the replacement is the queue_batch processor. It takes the same configuration structure as sending_queue, and its batch defaults match the old processor:

processors:
  queue_batch:
    num_consumers: 1
    sizer: requests
    queue_size: 10
    block_on_overflow: true
    batch:
      enabled: true
      sizer: items
      min_size: 8192
      flush_timeout: 200ms

One practical check: queue_batch ships in the otelcol, otelcol-contrib and otelcol-k8s distributions from v0.165.0, but not in otelcol-otlp, and its README does not list them yet. On an older version or a slimmer distribution, you need a custom build with the OpenTelemetry Collector Builder.

Test it before the default flips

You do not have to wait for February to find out how your pipelines behave.

  • Turn on the new default early. Start the Collector with --feature-gates=pkg.exporterhelper.queueBatchEnabled. The gate (alpha, since v0.158.0) enables exporter batching by default, which is what v0.171.0 will do.
  • Read the startup log. From v0.165.0, a pipeline that combines the batch processor with exporter batching produces a warning. In that case you can simply remove the processor. The check does not look across connectors, so a clean log is not proof on a pipeline that uses them.
  • Watch the queue. Compare otelcol_exporter_queue_size with otelcol_exporter_queue_capacity before and after the change, on a Collector that sees real traffic. A queue that sits near capacity after the migration is the trap from the previous section.

Migrating a fleet, not one Collector

On one host, this is a ten-minute edit. On two hundred Collectors with slightly different configs, it is a rollout. Four things make it manageable, whatever tooling you use:

  1. Find every config that lists batch. Configs drift, and the ones you forgot are the ones that will fail to start after v0.177.0. Our post on detecting collector config drift covers how to see what each Collector is actually running.
  2. Change the template, not the hosts. If configs come from one source, the migration is one change, reviewed once.
  3. Roll out in waves and watch the queue metrics on the first wave before the rest. The approach is the same as for any risky config change: rollout and rollback.
  4. Upgrade the binaries after the configs. Exporter batching has been available since around v0.126.0, when upstream says the sending_queue configuration stabilised, so on reasonably current Collectors you can change configs first and upgrade the fleet on your own schedule, without a hard deadline in May.

This is the general case for managing Collector configuration centrally, compared approach by approach in five ways to manage OpenTelemetry Collectors.

Where LinkMesh stands

LinkMesh is reviewing its processor catalogue and config validation for this change. We will update this post when that work ships.

LinkMesh is a self-hosted OpAMP server for upstream OpenTelemetry Collectors, so what you read here is the upstream migration, unchanged. To see your fleet and its configs in one place, you can install LinkMesh and try it on one Collector.