OpenTelemetry Collector Sending Queue Full: What to Check

Seeing 'sending queue is full' in OpenTelemetry Collector logs? Tell admission failures, backend errors and retry exhaustion apart before you touch queue_size.

Ephraim Duncan

When the OpenTelemetry Collector logs "sending queue is full", the exporter helper could not admit data into its sending queue, so the data was rejected before any send or retry happened. The queue is only the place where the symptom shows up. The cause is usually a slow or failing backend, a drain rate that cannot keep up, or a burst that outran your settings, and raising queue_size without knowing which one buys time and nothing else.

This guide treats "sending queue is full" as three different failures and gives you a metric-by-metric checklist to tell them apart. If you are shipping LLM or agent traces over OTLP and watching spans go missing, work through the checks in order before you edit config. For the broader hunt across receivers, processors and exporters, pair this with our guide on finding where the Collector drops spans.

What "sending queue is full" actually means

"Sending queue is full" means the exporter's queue had no room for a new batch of telemetry, and with the default settings the incoming data was rejected. The queue sits inside the exporter helper, between your pipeline and the actual network call to the backend. Producers put data in, a pool of consumers takes data out and sends it.

The defaults matter. The current exporterhelper docs list queue_size as 1,000 and num_consumers as 10. Depending on configuration, queue_size may measure requests (batches), individual items (spans, data points, or log records), or bytes. A queue of 1,000 requests is a very different buffer from a queue of 1,000 spans, so check which sizer you are running before you compare numbers.

When configured not to block on overflow, a full queue rejects new data immediately. That rejected data never reaches the retry logic. This is the detail that trips people up: retries protect data that is already in the queue, not data that could not get in.

Tell the three failures apart: admission, backend errors, retry exhaustion

The same log line can come from three distinct failures, and each one needs a different fix.

Queue admission failure. Data arrives faster than consumers drain it, the queue fills, and new batches are rejected on the way in. The backend may be perfectly healthy. The consumers are simply too few or too slow for the incoming rate, or batches are too small and too numerous.

Backend send errors. The backend or network is returning errors or timing out. Each failed attempt holds a consumer for the length of the timeout, the drain rate collapses, and the queue fills as a downstream effect. The queue is full because the backend is unhealthy.

Retry exhaustion. The exporter retried with backoff until max_elapsed_time ran out, then dropped the data. This failure happens after admission. The queue may have looked fine while data quietly aged out inside retry loops.

The point of separating them is that the remedies conflict. Admission failures call for more drain capacity or better batching. Backend errors call for fixing the backend or the network path. Retry exhaustion calls for a sober look at how long you can afford to hold data. Making the queue bigger helps none of them at the root.

Read the Collector's internal metrics first

Read the exporter's own metrics before changing any setting, because they tell you which of the three failures you have. The Collector exposes internal telemetry by default, and you can send it over OTLP or scrape a Prometheus endpoint. Metric names can carry the otelcol_ prefix and, in Prometheus output, _total suffixes on counters, so match the names against what your endpoint actually emits.

Use this checklist:

  • otelcol_exporter_queue_size versus otelcol_exporter_queue_capacity. Size is what is waiting now, capacity is the ceiling. A queue pinned near capacity means drain is not keeping up. A queue that spikes and recovers means bursts.

  • otelcol_exporter_enqueue_failed_spans (and the metric and log variants). Nonzero means data was rejected at admission. This is failure one.

  • otelcol_exporter_send_failed_spans. Nonzero means attempts to reach the backend failed. Retries may still succeed, so a nonzero value alone does not prove loss. This points at failure two.

  • Exporter logs. Look for retry messages and the final drop message to spot failure three.

Read them as a combination. High enqueue failures with zero send failures is a pure admission problem. High send failures with a full queue is a backend problem that surfaced as a queue problem. Send failures that stop followed by missing data suggests retry exhaustion. Check the exporter helper docs for the exact set your Collector version emits.

Fix the cause: drain rate, retries, batching and memory_limiter

Fix the cause the metrics point to, and fix drain rate before you fix capacity. Three levers matter.

Drain rate. If send failures are zero but the queue is full, add consumers or make each send cheaper. More num_consumers raises export concurrency, but it only helps if the backend can take the extra parallel load. If the backend is the bottleneck, more consumers just push harder on something already struggling.

Batching. Many tiny requests waste consumer time on per-request overhead. Batching spans into larger payloads, either with the batch processor or with the batch settings available inside the sending queue, cuts the number of sends and raises throughput per consumer. Tune the batch size against your backend's payload limits, not against the queue.

Retries and backpressure. The retry_on_failure block controls how long failed sends are held and retried. Long retry windows keep consumers busy on bad data and hold queue slots. Short windows drop sooner. Pick the window deliberately, based on how long an outage you want to ride out.

Put memory_limiter first in the pipeline. It refuses data when the Collector approaches its memory budget, which pushes backpressure to the sender instead of letting the process get killed. Combined with senders that retry, that is usually better than silent loss inside a crashed Collector.

Tune sending_queue settings: queue_size, sizer, num_consumers and block_on_overflow

Tune the queue only after you know which failure you have, and know what each setting actually does.

  • queue_size: capacity, counted in the unit chosen by sizer. Size it for the outage you want to absorb: expected incoming rate multiplied by the seconds you want to cover.

  • sizer: requests counts batches, items counts spans, data points or log records, and bytes counts serialized size. Use items or bytes when batch sizes vary a lot, since a request count hides that.

  • num_consumers: parallel senders draining the queue. Raise it when the backend has headroom and send errors are zero.

  • block_on_overflow: when true, callers wait for queue space instead of being rejected right away. That propagates backpressure upstream, which can protect data if senders retry, but it can stall receivers and still fail if space does not open in time.

Do not confuse block_on_overflow with wait_for_result. The latter controls whether the caller waits for the queued request to finish processing, not whether it waits for room in the queue.

A starting point for an OTLP exporter:

exporters:
  otlp:
    endpoint: backend.example:4317
    retry_on_failure:
      enabled: true
      max_elapsed_time: 300s
    sending_queue:
      enabled: true
      num_consumers: 10
      queue_size: 5000
      block_on_overflow: false

Treat those numbers as a placeholder to measure against, not a recommendation.

Add a persistent queue with file_storage (and know its limits)

A persistent queue writes queued data to disk through the file_storage extension so it can survive a Collector restart. Configure the extension, then point sending_queue.storage at its ID.

extensions:
  file_storage:
    directory: /var/lib/otelcol/storage

exporters:
  otlp:
    endpoint: backend.example:4317
    sending_queue:
      enabled: true
      queue_size: 5000
      storage: file_storage

service:
  extensions: [file_storage]

The resiliency docs describe this as a write-ahead log that protects against loss when the Collector instance crashes or restarts. That is real protection against one specific event. It is not protection against a queue that is full.

The limits are plain. The persistent queue is still bounded by queue_size, so when it fills, new data is still rejected. It adds disk I/O to every enqueue and dequeue. The directory has to be on storage that survives the restart, which means a mounted volume in containers, not an ephemeral layer. And if the disk itself cannot accept writes, you are back to dropped data. For tiers where you need more than this, the resiliency docs also cover message queues between Collector tiers.

Why a bigger queue does not guarantee no data loss

A bigger queue only delays the moment you start dropping data, and it never guarantees zero loss. If the average incoming rate exceeds the average drain rate, any finite queue eventually fills. You have moved the failure later and made it larger when it arrives.

Bigger queues also carry costs. An in-memory queue holds more data that vanishes if the process dies. A larger backlog means data is older by the time it reaches the backend, so traces show up late. And a deep queue can mask a backend problem for hours, until the dashboards you were relying on have gaps.

Loss can still occur when queues overflow, retries run out, or the Collector fails without persistent storage. Capacity is one input. Drain rate, retry policy, backpressure and persistence are the others.

Size the queue for the burst or outage you have measured, alert on queue_size against queue_capacity, and fix the throughput problem underneath. That is the only approach that holds up under load. If your agents also trace through message brokers, trace context across message queues is worth reading so queued work does not also lose its parent spans.

Quick checklist and where to go next if spans are still missing

Run this in order:

  1. Compare otelcol_exporter_queue_size to otelcol_exporter_queue_capacity. Pinned high, or spiky?

  2. Check otelcol_exporter_enqueue_failed_spans. Nonzero means admission failure.

  3. Check otelcol_exporter_send_failed_spans and exporter logs. Nonzero means backend or network errors.

  4. Look for retry-exhaustion drop messages after max_elapsed_time.

  5. Confirm your sizer, so you know what queue_size counts.

  6. Fix drain first: backend health, batching, then num_consumers.

  7. Put memory_limiter first in the pipeline.

  8. Add file_storage if restarts are losing data, and accept it does not fix a full queue.

  9. Only then raise queue_size, sized to a measured outage.

If the queue looks healthy and spans are still missing, the loss is probably elsewhere: sampling, a processor, or a receiver. Our guide to finding dropped spans in the Collector walks that search, and diagnosing missing runs from trace sampling covers the sampling side for LLM traces.

Fix the drain, not the queue, then send traces somewhere you can read them

A full sending queue is a throughput problem wearing a buffer-size costume. Read the queue and failure metrics, name which of the three failures you have, fix drain rate and backend health, and size the queue last. If you are sending LLM or agent traces through a Collector, point an OTLP/HTTP exporter at telemetry.dev, which accepts standard OTLP, and start on the free plan (30k units, 14-day retention) to confirm your spans actually arrive.

Share this article

Related posts

OpenTelemetry Collector Persistent Queue Setup

Set up an OpenTelemetry Collector persistent queue with file_storage and sending_queue, mount durable disk, run a kill test, and see where spans still get lost.