
To find where an OpenTelemetry Collector dropped spans, read three internal counters in order: otelcol_receiver_refused_spans (the Collector turned data away at the door), otelcol_exporter_enqueue_failed_spans (the sending queue was full) and otelcol_exporter_send_failed_spans (the backend call failed, which retries or a persistent queue may still recover). Each one points at a different stage and a different fix.
This matters most for LLM and agent traces. One agent run can emit dozens of spans: a root span, model calls, tool steps, retrievals. Lose a handful and the trace in your backend looks like a run that stopped halfway, or a tool call with no parent. You see an incomplete picture and no error.
The Collector exposes its own metrics so you can answer this question without guessing. This post is a decision tree through those metrics, using agent traces as the running example.
Where spans can disappear: SDK, receiver, processor, exporter, backend
Spans can vanish at five stages, and the Collector only controls the middle three. Knowing the order tells you which counter to read first.
SDK. The app never sent them: sampling in the SDK, an unflushed batch on process exit, or a serverless function that froze before export.
Receiver. The Collector's OTLP receiver refused them, often because a processor downstream pushed back.
Processor. memory_limiter, batch or a sampling processor dropped or refused them on purpose.
Exporter. The sending queue overflowed, or the send to the backend failed.
Backend. The backend accepted the request but rejected, truncated or never indexed the data.
The official troubleshooting guide names the most common causes of dropped data as inadequate sizing and a slow or unavailable destination. Start at the receiver and walk forward. Do not start at the backend UI, because an empty trace there tells you nothing about which stage lost the spans.
Turn on the Collector's internal telemetry first
Every query in this post depends on the Collector's own metrics, so enable them before changing anything else. By default the Collector exposes its internal telemetry in two ways, and you can either expose a Prometheus endpoint or push internal metrics over OTLP.
Two details trip people up:
Metric verbosity. The level field controls how much the Collector emits. If a metric you expect is missing, check the level before assuming the Collector has nothing to report.
Graph rates, not raw totals. A counter that read 4,000 yesterday and 4,000 today means nothing was dropped today. A counter climbing at 20 per second means something is dropping right now.
Receiver refusals: otelcol_receiver_refused_spans
otelcol_receiver_refused_spans counts spans the receiver could not push into the pipeline, and a sustained rise means the Collector is rejecting incoming data. This is the first branch of the tree.
What refusal means for your app: the client gets an error back. Whether spans are truly lost depends on the client. An OTLP exporter in the SDK that retries may deliver them on the next attempt. One that gives up after a timeout will not.
The usual cause is backpressure from inside the Collector. When memory_limiter is over its limit, it refuses data, and the receiver reports that as refused spans. So a spike here often points downstream, not at the receiver itself.
Agent example: a burst of parallel tool calls produces a wave of spans in a second or two. If refused spans spike in the same window, the Collector is undersized for the burst. Compare the spike time against your agent's fan-out timing. Our post on parallel tool calls shows why these bursts are bigger than they look.
If refused spans stay at zero, move on to the exporter.
Exporter enqueue failures: when the sending queue is full
otelcol_exporter_enqueue_failed_spans counts spans the exporter could not add to its sending queue, most often because the queue is full. This is the second branch, and it is real, immediate loss at that point in the pipeline.
Confirm it by comparing two gauges: otelcol_exporter_queue_size against otelcol_exporter_queue_capacity. A queue that sits near capacity means the exporter cannot drain as fast as data arrives. Rising enqueue failures confirm that new data could not get in.
A full queue is a symptom. The cause is slow or failing export, a backend that is throttling, or too little Collector capacity. Fixes, in order of preference:
Fix export throughput: check the backend, network and batch sizes.
Scale the Collector out.
Raise queue capacity only if the Collector has memory for it. A bigger in-memory queue hides a backlog that keeps growing.
Add a persistent queue if data must survive restarts or longer outages, and watch disk capacity.
The sending_queue and retry_on_failure settings on the exporter control this behavior. Read them before tuning anything else.
Send failures: why a failed send is not proof of permanent loss
otelcol_exporter_send_failed_spans counts spans that failed to send to the destination, but a failed send is not the same as lost data. That is the point people get wrong most often.
When a send fails, the exporter's retry_on_failure setting can retry it. If a persistent queue is configured, the batch can also survive and be sent later. So a nonzero send-failed counter can mean any of these:
A transient backend blip that retries recovered.
A throttled backend where retries eventually succeeded.
A permanent rejection (bad payload, auth failure) where retries will never help.
A long outage that outlasted the retry window, so data was dropped after retries ran out.
The counter cannot tell these apart on its own. Read it alongside exporter logs, which carry the error from the backend: throttling, a network error, a rejected request. Then ask whether the data was eventually delivered. If the count of spans in your backend matches what the app emitted, retries did their job and the counter was noise.
Treat send failures as a lead, not a verdict. Combine them with enqueue failures: send failures that rise first, followed by a full queue and then enqueue failures, is the classic story of a slow backend turning into real drops.
Rule out memory_limiter, batch and sampling before blaming the backend
Three processors cause drops that look like backend problems, so rule them out first.
memory_limiter. It protects the Collector from memory exhaustion by refusing data when memory is high. It does not make the exporter drain faster. Put it early in every pipeline. A rise there means memory pressure: add Collector memory or CPU, or scale out, rather than just enlarging a queue.
batch. The batch processor groups spans before export. A misconfigured batch timeout or size, or a full downstream queue, shows up as lost or delayed data. Check that batching and the exporter's sending queue are tuned to the same workload.
Sampling. A tail sampling processor drops spans by design, according to its policies. If a policy is too narrow, or a trace's spans arrive after the decision window closes, you get incomplete traces that no error counter will flag. For agent runs, long runs that outlast the wait window are the usual victim. Our post on LLM trace sampling walks through diagnosing missing runs from sampling.
If otelcol_processor_dropped_spans is rising, the processor chose to drop. That is configuration, not failure.
Confirm with the debug exporter, zPages and a test span
Metrics tell you which stage is losing spans. Three local tools confirm it with real data.
Debug exporter. Add the debug exporter to the pipeline with verbosity set to detailed, and the Collector prints the spans it actually received. If your agent's tool-call span appears in the log but not in your backend, the loss is at or after the exporter. If it never appears, look at the SDK and receiver. Use it briefly; detailed output is noisy.
zPages. The zPages extension, exposed locally on port 55679, lets you inspect live data from the Collector's receivers and exporters. It is the fastest way to see whether an exporter is erroring right now.
A test span. Send one known span with a recognizable name straight to the Collector, then follow it: debug exporter, then backend. A single span removes the volume variable and shows whether the path works at all. If you send it to telemetry.dev, a span from any OTLP/HTTP exporter or OpenTelemetry Collector lands in the same trace view as your model calls, which makes the end-to-end check quick. Our guide to verifying exported spans covers the check in more detail.
Check what the app and gateway sent before blaming the Collector (auth failures and rejected OTLP)
If every Collector counter is clean, the spans may never have reached it, or the backend may have rejected them after a successful hop. Check both ends before tuning the Collector further.
App side. Confirm the SDK exports before the process exits. Short-lived jobs and serverless handlers often drop the last batch because nobody called flush or shutdown. Agent runs that end in a crash lose exactly the spans you most want.
Gateway and auth. An authentication failure or a rejected OTLP request looks like a send failure in the Collector but will never succeed on retry. Check exporter logs for 401, 403 or 4xx responses, and verify the endpoint, headers and API key. A wrong header drops everything while the Collector looks healthy. If you front the pipeline with a gateway such as LiteLLM, make sure it is not double-emitting or stripping context; see LiteLLM tracing.
Only after the app, gateway and auth are ruled out should you conclude the Collector or backend lost the data.
Read the three counters in order, then send a test span to telemetry.dev
Dropped spans are rarely a mystery once you read the Collector's own counters in order: refused at the receiver, failed to enqueue, failed to send. Remember that send failures are the one signal that does not prove loss, so check retries and your backend's span count before declaring data gone. Enable internal telemetry, graph the three rates, and confirm with the debug exporter. Then send a test span from your Collector to telemetry.dev, where the free plan covers 30k units, and check that the whole agent trace arrives intact.
Share this article


