DevOps

How to Migrate Off the OpenTelemetry Collector Batch Processor (2026)

The Collector's batch processor is deprecated and exporter-level batching is replacing it. Here is the migration, the queue-sizing trap, and the metrics to watch.

Paige Donnelly

Senior Backend Engineer

Published 8 min read
Blue ethernet network cable plugged into a port, representing telemetry traffic leaving a Collector
On this page 8 sections

The OpenTelemetry Collector batch processor is deprecated. To migrate, remove batch from every pipeline, turn on batching inside each exporter's sending_queue block, and raise queue_size so the queue can hold unbatched requests. Finish before batching becomes the default in v0.171.0 (February 2027) and the processor is removed in v0.177.0 (May 2027).

The batch processor has sat in most Collector pipelines since 2019. The OpenTelemetry maintainers deprecated it on November 11, 2026. Backtrace tests developer tools against real codebases, and a quiet change to a default setting is exactly the kind of thing that breaks production at 3am.

This guide is for backend and platform engineers who run a Collector. It covers what is changing, how to move batching into the exporter, how to resize the queue, and how to check the result.

What Is Changing With the OpenTelemetry Collector Batch Processor?

The Collector maintainers deprecated the batch processor in favor of batching built into exporters, called exporter-level batching. Most exporters turn it on by default in v0.171.0, planned for February 2027. The processor is slated for removal in v0.177.0, planned for May 2027. A new queue_batch processor replaces it where needed.

Desk calendar page marking the dates of the batch processor deprecation timeline

These dates come from the OpenTelemetry project's deprecation announcement, written by Bogdan Drutu, Dmitry Anoshin, and Joshua MacDonald. Treat the release numbers as plans, not guarantees.

Waiting for the new default is not a safe plan. If you do nothing, your batching behavior changes when the default flips. If your config still lists batch when the processor is removed, that config needs an edit anyway, and you would rather make it on a quiet afternoon than during an incident.

Any team that has run a planned upgrade will know the shape of this work: take an inventory, make the change, then verify. Backtrace's guide to upgrading to Rust 1.100 with a test plan follows the same pattern for a compiler.

Why Did the Old Batch Processor Hit Its Limits?

The batch processor was designed around item counts, meaning individual log records, metric data points, and trace spans. Its defaults are a 200ms timeout and an 8,192-item send size, with no maximum. By 2021 its behavior had settled, and users wanted three things it could not give them.

Those three things were size limits in bytes, a cap on concurrent requests, and control over back-pressure and error propagation. The processor's built-in queue offered none of them. It also had no storage extension, so the queue could not survive a restart.

The worst part is the silent success. The producer writes to an in-memory Go channel and returns success to the caller right away. A dead backend then shows up as missing data, not as an error your pipeline can see.

How Do You Move Batching Into the Exporter Step by Step?

Move batching in six steps: inventory your pipelines, confirm each exporter supports the shared queue, delete the processor, enable batching under the exporter, resize the queue, and roll out to one instance first. The steps below spell out each one.

Close-up of configuration code on a computer monitor during the batching migration
  1. List every pipeline that names batch in its processors list. Include configs rendered by Helm or other templates.
  2. Confirm each exporter uses the common sending_queue settings. Most do, so check the README of any exporter you doubt.
  3. Remove batch from the processors list of each pipeline.
  4. Set batch.enabled to true under the exporter's sending_queue.
  5. Raise queue_size, as the next section explains.
  6. Deploy to one canary Collector and compare it with an untouched one.

The change itself is small. Here is the before and after for an OTLP exporter:

text
# before
processors:
  batch:
service:
  pipelines:
    metrics:
      processors: [batch]

# after
exporters:
  otlp:
    sending_queue:
      enabled: true
      batch:
        enabled: true

After you enable it, the default sizer, min_size, and flush_timeout match the old processor: items, 8,192, and 200ms. The optional max_size replaces send_batch_max_size. Teams that batched by request header can keep doing so with the partition settings, which form separate batches per combination of selected headers.

Two safety nets exist before the default flips. The pkg.exporterhelper.queueBatchEnabled feature flag lets you test with batching on by default. The Collector also warns when a pipeline has both a batch processor and a batching sending_queue, which means you can simply delete the processor.

Treat the canary like any other staged rollout. Backtrace's walkthrough of the JDK 27 upgrade with a changed default shows why a changed default deserves a side-by-side run.

How Big Should the Exporter Queue Be After the Move?

Bigger than it is today. With the old processor, the queue held already-batched requests. With exporter-level batching, batching happens after the queue, so the queue holds small individual requests. The same queue_size of 1,000 may now hold far less data and can overflow.

Blue network cables connected to a server that receives batched telemetry

The project's migration notes give a sizing rule. For an in-memory queue, make it hold at least enough data to keep num_consumers busy. Then add room to survive short export failures, especially if callers block when the queue is full.

Measuring the queue in items or bytes makes the memory cost explicit, which a request count hides. The same announcement gives a worked example. A queue of 100,000 items with a 5,000-item minimum batch and 10 consumers can send 50,000 or more items at once and hold another 50,000 waiting.

How Big Should the Exporter Queue Be After the Move?
SizerWhat it countsBest used when
requestsNumber of requests in the queueRequest sizes are uniform and you want the lowest CPU cost
itemsLog records, data points, or spansYou want memory use tied to telemetry volume
bytesEncoded size of the dataYour backend enforces a byte limit and you set max_size

The items and bytes sizers cost more CPU than requests, and bytes costs the most because it computes encoded size. Pick the cheapest sizer that still protects your backend.

When Does the queue_batch Processor Still Make Sense?

Use the queue_batch processor when batching must happen inside the pipeline instead of at the exporter. The maintainers name two cases: ahead of an aggregation processor that works better with large batches, and when several exporters share one processor to save memory.

It uses the same configuration structure as sending_queue. Its default item threshold and flush timeout match the old processor. That means you get consistent back-pressure, persistent storage, and error propagation whether batching lives in a processor or an exporter.

Persistence deserves a mention. Any sending_queue can point at a storage extension such as file_storage, which turns the in-memory queue into a durable one. It is worth considering for pipelines where a Collector restart must not drop data.

How Do You Verify the Collector After the Change?

Watch two Collector metrics. Compare otelcol_exporter_queue_size with otelcol_exporter_queue_capacity after the switch. If the first number keeps nearing the second, the queue is too small for the load or the backend is too slow.

Laptop showing an analytics dashboard with queue and export charts

The Collector documents these gauges in its internal telemetry reference, along with counters for failed enqueues and failed sends. Alert on the failure counters as well as the queue ratio. A full queue that fails fast looks healthy on a latency chart.

Read the startup logs too. Paige Donnelly's rule at Backtrace is to trust a well-placed log line over a dashboard when you want to know what the process decided. The deprecation warning, or the warning about running both batchers, shows up there first.

Finally, review the config diff as carefully as you would review code. Backtrace's piece on auditing AI coding agent configs makes the case that config files deserve the same scrutiny as source, and a pipeline file is no exception.

What Can Go Wrong During the Migration?

Most failures come from five predictable mistakes, so check each one before you promote the change beyond the canary:

  • A queue_size left at 1,000 requests, which now holds unbatched requests and overflows sooner.
  • Both a batch processor and exporter-level batching in one pipeline, which doubles the work and triggers the Collector's warning.
  • An exporter that does not use the shared sending_queue, so it has no exporter-level batching to turn on.
  • A bytes sizer chosen by default, which adds the most CPU cost of the three sizers.
  • Default queue behavior that fails fast, because block_on_overflow and wait_for_result are both false.

That last default deserves attention. The queue returns success or failure to the caller immediately and does not apply back-pressure. Under sustained load, a full queue rejects new requests instead of slowing the sender down.

There is a fair counterpoint. A small Collector with light traffic may never notice any difference after the move. It should still carry the edit, because the removal in May 2027 does not care how little data you send.

Conclusion

Removing the OpenTelemetry Collector batch processor is a small edit with a real sizing consequence. Delete the processor, enable exporter-level batching, and raise queue_size so the queue holds unbatched requests. Then confirm with the queue metrics.

Your next step is a repo-wide search for batch in your Collector configs this week. Start with the pipelines that carry the most data, canary one instance, and finish well before February 2027. At Backtrace, we treat a dated deprecation as a deadline, and this one has two dates attached.

Is the OpenTelemetry Collector batch processor removed yet?
No. The maintainers deprecated it on November 11, 2026. Removal from the core repository and distributions is planned for v0.177.0 in May 2027. Until then it still works, though a deprecation warning is coming. Configs that still list it will need an edit before that release lands.
Do I have to enable exporter-level batching myself?
Not forever, but you should. Batching is planned to be on by default in most exporters from v0.171.0 in February 2027. If you set it yourself in sending_queue now, you control the sizes and the default change has no effect on you.
Will removing the batch processor change my Collector's memory use?
It can. Batching now happens after the queue, so a request-counted queue holds smaller, unbatched requests. Resize queue_size and consider an items or bytes sizer so the limit reflects real data volume. Then watch queue size against queue capacity to confirm the memory profile is what you expect.
Can I keep batching inside a processor instead of the exporter?
Yes. The new queue_batch processor is the replacement. It shares the sending_queue configuration structure and matches the old default threshold and flush timeout. The maintainers recommend it mainly ahead of aggregation processors, or when several exporters share one processor and memory savings matter.

Written by

Paige Donnelly

Senior Backend Engineer

8+ years experience

Paige Donnelly is a senior backend engineer who has spent the last eight years working on distributed systems, first at a mid-size fintech and then leading a payments infrastructure team through a migration from a monolith to event-driven services. She's on the losing end of more 3am pages than she'd like to admit, which is why she writes about observability, deployment safety, and API design with an eye toward what actually breaks in production rather than what looks good in a conference talk. She contributes to a couple of open-source CLI tools in her spare time and still refuses to use a debugger for anything she can solve with well-placed logs.

Credentials

  • 8 years in backend and distributed systems engineering
  • Former tech lead, payments infrastructure at a Series D fintech
  • Contributor to several open-source developer tooling projects