OpenTelemetry Is Moving Batching Into the Export Queue

OpenTelemetry is retiring the Collector's batch processor. The replacement offers better queue control, but a careless migration can quietly shrink outage buffers.

QuantumBytz Team
November 23, 2026
Share:
Infrastructure engineer organizing fiber and Ethernet connections between two observability gateway servers and several backend racks.

Summary

OpenTelemetry Collector operators have a configuration migration to plan before 2027. The project has deprecated the familiar batch processor and is moving batching into each exporter's sending_queue. Exporter-level batching is scheduled to become the default in most exporters with Collector v0.171.0 in February 2027, followed by removal of the old processor from core distributions in v0.177.0, planned for May.[1]

The YAML change can be short. The operational change is not. Batching will happen after the export queue instead of before it, so a queue that currently holds 1,000 finished batches may hold only 1,000 small incoming requests after migration. Copying the old queue size without measuring it can reduce outage tolerance and cause dropped telemetry.[1][2]

This is a reliability change disguised as a component rename. Platform teams should inventory Collector configurations now, choose an explicit sizing unit, test backend failures, and watch the Collector's own queue metrics before a routine upgrade turns into an observability gap.

Why OpenTelemetry is replacing the batch processor

The old processor solved a basic efficiency problem. Sending every small group of spans, metric points or log records as a separate network request wastes CPU and bandwidth. A batch amortizes serialization and network round trips, often improves compression, and reduces the number of calls to a telemetry backend.

The design dates to the Collector's early years. It sits in the processor chain, gathers items until it reaches a count or timeout, then passes the resulting request downstream. Its defaults are familiar to many operators: 8,192 items or 200 milliseconds, with no maximum item count unless one is configured.[1]

That location also limits what the component can know and control. The processor sees the Collector's in-memory telemetry representation. It can count spans, data points and log records, but it is a poor place to enforce a backend's encoded byte limit. Its internal queue does not offer the same configurable concurrency, persistent storage, overflow handling and result propagation available in the export path.[1][2]

The replacement uses common queue-and-batch code in exporterhelper, the library behind many Collector exporters. Requests enter a bounded sending queue. Concurrent consumers take work from that queue, combine undersized requests or split oversized ones, then call the exporter through its timeout and retry behavior. Operators can size by requests, telemetry items or encoded bytes. They can also control consumer count, overflow behavior and whether the queue waits for an export result.[1][2]

The project is not claiming that one set of defaults fits every deployment. The confirmed change is architectural: batching and queuing now share one implementation close to the network boundary. The performance or reliability improvement for a particular fleet still depends on its traffic, backend and configuration.

The queue-size trap

A common current pipeline batches telemetry first and places the completed requests into an export queue:

processors:
  batch:

exporters:
  otlp:
    endpoint: telemetry.example:4317
    sending_queue:
      enabled: true

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [memory_limiter, batch]
      exporters: [otlp]

With the default request-based queue size, that exporter can hold as many as 1,000 requests. Because the processor has already assembled those requests into batches, each queue slot may represent thousands of spans.

After migration, unbatched requests enter the queue and batching happens as consumers remove them. The same 1,000 slots can represent far less telemetry. OpenTelemetry's migration notice warns that leaving queue_size: 1000 unchanged may increase overflow risk.[1] The RFC calls out the same ordering change and treats insufficient real-world feedback and distribution drift as migration risks.[2]

A better configuration makes capacity explicit:

exporters:
  otlp:
    endpoint: telemetry.example:4317
    sending_queue:
      enabled: true
      sizer: items
      queue_size: 100000
      num_consumers: 10
      batch:
        enabled: true
        sizer: items
        min_size: 5000
        max_size: 10000
        flush_timeout: 200ms

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [memory_limiter]
      exporters: [otlp]

Those numbers are an example, not a production prescription. A queue with room for 100,000 items and ten consumers can keep several batches in flight while retaining headroom for a short backend slowdown. It may be much too large for a small edge agent or too small for a busy regional gateway. The right capacity comes from measured ingest rate, average item size, available memory and the length of outage the system is expected to absorb.

Sizing by bytes can line up more closely with a backend's payload limit and memory budget. It also costs more CPU because the Collector must calculate encoded sizes. Item-based sizing is cheaper but does not account for large differences between a tiny metric point and a span carrying many attributes. Request-based sizing has the lowest accounting cost, but its memory use varies with the size of the requests entering the queue.[1]

Batching is not durability

It is easy to treat a larger queue as protection against data loss. It is only a bounded buffer.

The official resiliency guide says an in-memory sending queue can absorb a temporary endpoint outage while the exporter retries. Once that queue fills, incoming data can be rejected. Data still in memory disappears if the Collector crashes or is terminated. The default retry window is also finite.[3]

For a gateway where losing telemetry during a restart is unacceptable, the queue can use the file_storage extension. That adds a write-ahead log and allows queued data to survive a Collector process restart. It does not create an unlimited or absolute delivery guarantee. A full disk, failed volume, exhausted retry policy or prolonged backend outage can still lose data.[3]

Critical links may justify a dedicated message queue between Collector tiers. That adds another service to operate, so it should follow an actual durability requirement rather than a reflex to put Kafka in every telemetry path. Edge agents, regional gateways and central exporters do not necessarily need the same design.

Overflow behavior deserves an explicit decision too. With block_on_overflow: false, the sending queue fails quickly when full. Setting it to true applies backpressure by waiting for space. Blocking can preserve telemetry when upstream components respond correctly, but it can also push latency toward applications or receivers with short deadlines. wait_for_result similarly changes when the caller sees success. These settings define failure semantics, not just performance tuning.[1]

When the new queue_batch processor still fits

Exporter-level batching is the project's recommended path for most pipelines. It is not the only path.

Some processors work better when they receive larger collections of telemetry. A pipeline may also fan out to several exporters and prefer to build one shared batch instead of assembling a separate batch for every destination. For those cases, OpenTelemetry has introduced the queue_batch processor. It uses the same queue-and-batch configuration model as the exporters while keeping batching inside the processor chain.[1][2]

That distinction matters for custom Collector distributions. Operators should confirm that their binary includes queue_batch before changing configuration. Vendor distributions and products that embed the Collector can lag upstream or expose a narrower set of components. A YAML file accepted by otelcol-contrib is not proof that the same file will load in every packaged distribution.

Wide fan-out needs a memory test as well. Exporter-level batching creates work separately for each exporter. That is often the right trade because each backend can have a different payload limit, protocol and queue policy. It may consume more memory than one shared processor batch, especially when several slow destinations receive the same high-volume signal.

A migration plan that tests failure, not just startup

First, locate every batch processor declaration and every pipeline that references it. Include Helm values, generated manifests, sidecar templates, gateway configurations and vendor-managed distributions. Search startup logs for deprecation or double-batching warnings, but do not assume the absence of a warning proves the configuration is safe. Wrappers and connectors can obscure detection.[1][2]

Next, record the current traffic shape. Measure ingest items per second, request size, export latency, queue occupancy, failed enqueue counts and memory use during ordinary load. Repeat during a controlled backend slowdown. The Collector exposes queue size and capacity metrics; the official documentation recommends monitoring both, along with failed exports and signal-specific enqueue failures.[3]

Build the new configuration explicitly rather than waiting for a default flip. Pick a sizing unit, calculate an initial capacity, and set batching values that match backend limits. Keep the memory limiter early in the processor chain. A recent CNCF performance guide notes that batching, polling intervals, resource attributes and sampling all contribute to Collector overhead; changing several at once makes the result harder to explain.[4]

Validate the configuration with the exact Collector binary and version used in production. Then load-test it with representative traces, metrics and logs. Synthetic traffic is useful for repeatability, but production samples reveal attribute sizes, burst patterns and tenant skew that a uniform generator can miss.

The failure test is more important than the happy path. Pause or throttle the backend long enough to fill a meaningful part of the queue. Confirm that queue occupancy, enqueue failures and retries produce alerts before data disappears. Restart a Collector with work queued. If persistent storage is enabled, verify recovery from the actual mounted volume and check disk-full behavior. Test both a slow backend and a hard connection failure.

Finally, canary the change. Compare export throughput, CPU, memory and dropped telemetry against the old pipeline. Watch tail latency for applications that send directly to a local Collector, especially if blocking behavior changed. Keep the rollback configuration ready until the new queue has survived a real traffic peak and an induced outage.

The dates are a schedule, not a substitute for release notes

OpenTelemetry currently plans to enable exporter-level batching by default in most exporters in v0.171.0 in February 2027 and remove the old processor from core distributions in v0.177.0 in May 2027.[1] Those are project plans, not guarantees that every embedded product will move on the same day.

Teams should pin Collector versions, read the release notes for the distribution they run, and validate generated configuration in CI. Waiting for removal is risky because a pipeline that still names the missing component may fail to start. Migrating without capacity tests is risky for a different reason: the process may start cleanly while its useful outage buffer has quietly shrunk.

The practical goal is not to replace one YAML key with another. It is to make export behavior legible. Queue capacity should correspond to a known amount of telemetry. Backend payload limits should map to batch limits. Overflow and acknowledgement settings should reflect the behavior of upstream clients. Alerts should fire while there is still room to recover.

OpenTelemetry is giving operators several months to establish those properties before the old processor is scheduled to disappear. Use that time to test the part dashboards rarely show until it fails: whether the pipeline that carries the evidence can survive trouble of its own.

Sources

  1. OpenTelemetry: Deprecating the Collector Batch Processor
  2. OpenTelemetry Collector RFC: Migration for batchprocessor and exporterhelper batching
  3. OpenTelemetry documentation: Collector resiliency
  4. CNCF: Is your OpenTelemetry pipeline becoming a performance bottleneck?

QuantumBytz Team

The QuantumBytz Editorial Team covers cutting-edge computing infrastructure, including quantum computing, AI systems, Linux performance, HPC, and enterprise tooling. Our mission is to provide accurate, in-depth technical content for infrastructure professionals.

Learn more about our editorial team