When the OpenTelemetry Collector isn't exporting traces, follow one finished, sampled span. Check whether the SDK tried to send it to the Collector's listening address. Compare accepted and refused spans on that receiver, then read the named exporter's retry and queue evidence. A send error can still be followed by a successful retry. Match the trace ID and span ID at the receiving end to prove delivery, then check whether that endpoint had a storage destination for traces.
The listings and commands below are illustrative. They send one example span at a time through two loopback Collectors. You'll match IDs on the healthy path, stop and restart the sink during a retry, and point the exporter at a wrong path to see how a permanent rejection differs. Use the failure matrix to choose the next owner, then confirm the Hosted OpenTelemetry endpoint and APM storage for your stack.
Contents
Establish that a sampled span finished
SDK export vs listener mismatch
Start with a request the application owner can identify. Ask for the trace ID, span ID, service name and UTC time the span ended. Confirm that the request span was sampled, ended and handed to a span processor with an exporter configured. An application can complete a request while a span is still open or its export batch is still waiting. A trace ID in an application log only shows that the request had trace context. Ask the application owner for the SDK’s export diagnostics and the times of the relevant attempt and response.
For a short-lived process, check whether it waited for the SDK’s supported flush or shutdown call to complete and capture any error it returned. Check the trace-specific exporter settings alongside the general OTLP settings. An environment override can select a different destination or disable the exporter. If the SDK records no attempt after the span ends and the batch has time to flush, the application owner should check the sampler, span processor, exporter and shutdown path. If the SDK records an attempt to a different port, protocol or address, use the reported destination to investigate the listener.
In Docker Compose, localhost inside the app container means the app container itself. When the app and Collector are in different containers, give the app the Collector’s Compose service name on a shared network and use the receiver’s OTLP/HTTP port. Bind that receiver to an interface reachable from the app container. A receiver bound to 127.0.0.1 inside the Collector container only accepts traffic from that container. A host port mapping alone cannot make a container-local listener reachable from its peer.
A connection refusal or a request to a different listener can leave both span counters unchanged on the Collector you’re watching. Use the SDK’s effective destination and attempt result to distinguish this from an SDK that never handed off a batch. The loopback example below bypasses the SDK. If that path works, check the application’s export path separately.
Follow the span through the configured pipeline
Exporter ID in the traces pipeline
Find the exporter under exporters, then find the same ID in service.pipelines.traces.exporters. Defining an exporter alone leaves it unused by that pipeline. The sender below lists debug and otlphttp/local-sink. They receive the same batch as separate branches. This guide uses OpenTelemetry Collector Contrib v0.128.0, which accepts the exporter type otlphttp. Current Logit.io Hosted OpenTelemetry docs prefer otlp_http; that name is a later alias and is rejected by 0.128.0. If your own Collector sends to separate Logit.io product inputs, check each exporter definition and its pipeline assignment against the integration guide. OpenTelemetry Collector integration for separate exporters.
Two loopback Collectors
Use otelcol-contrib version 0.128.0 for both processes. Run them in separate terminals on the same machine. The sender receives OTLP/HTTP on 127.0.0.1:4318, batches the one-span request for up to about a second, and copies it to both exporters. The named HTTP exporter takes the base URL on port 5318 and appends /v1/traces. The sink prints the received span. Its output gives you a second place to check the ID.
Save the sender as sender.yaml in a working directory of your choice.
receivers:
otlp:
protocols:
http:
endpoint: 127.0.0.1:4318
processors:
batch:
timeout: 1s
send_batch_size: 8
exporters:
debug:
verbosity: detailed
otlphttp/local-sink:
endpoint: http://127.0.0.1:5318
timeout: 2s
sending_queue:
enabled: true
num_consumers: 1
queue_size: 4
retry_on_failure:
enabled: true
initial_interval: 2s
max_interval: 5s
max_elapsed_time: 1m
service:
telemetry:
metrics:
readers:
- pull:
exporter:
prometheus:
host: 127.0.0.1
port: 8888
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [debug, otlphttp/local-sink]
Save the sink as sink.yaml. Its internal metrics use port 8889 so the two Collectors can run together.
receivers:
otlp:
protocols:
http:
endpoint: 127.0.0.1:5318
exporters:
debug:
verbosity: detailed
service:
telemetry:
metrics:
readers:
- pull:
exporter:
prometheus:
host: 127.0.0.1
port: 8889
pipelines:
traces:
receivers: [otlp]
exporters: [debug]
Use example spans in both detailed debug branches. Remove the branches when you return to the application’s normal pipeline.
Check the binary version and validate both configurations. Once validation passes, start the sink in one terminal and the sender in another. Wait for both receivers to start before the healthy run.
otelcol-contrib --version
otelcol-contrib validate --config=sink.yaml
otelcol-contrib validate --config=sender.yaml
# Terminal 1
otelcol-contrib --config=sink.yaml
# Terminal 2
otelcol-contrib --config=sender.yaml
Save the following as send-span.sh in the same directory. It needs Python 3 and curl and posts one finished span with current timestamps. Each case has a distinct pair of IDs so an earlier run can’t answer a later case. If you repeat a case, use fresh logs or mark the start of the new observation window before sending.
#!/bin/sh
set -eu
case "${1:-healthy}" in
healthy)
trace_id=0123456789abcdef0123456789abcdef
span_id=0123456789abcdef
;;
outage)
trace_id=0123456789abcdef0123456789abcde0
span_id=0123456789abcde0
;;
wrong-path)
trace_id=0123456789abcdef0123456789abcde1
span_id=0123456789abcde1
;;
*)
printf 'Usage: %s [healthy|outage|wrong-path]\n' "$0" >&2
exit 2
;;
esac
body=$(python3 - "$trace_id" "$span_id" <<'PY'
import json
import sys
import time
trace_id, span_id = sys.argv[1:]
end = time.time_ns()
print(json.dumps({
"resourceSpans": [{
"resource": {
"attributes": [{
"key": "service.name",
"value": {"stringValue": "checkout-example"},
}],
},
"scopeSpans": [{
"scope": {"name": "loopback-example"},
"spans": [{
"traceId": trace_id,
"spanId": span_id,
"name": "example-checkout",
"kind": 1,
"flags": 1,
"startTimeUnixNano": str(end - 1_000_000),
"endTimeUnixNano": str(end),
}],
}],
}],
}))
PY
)
printf '%s\n' "$body" | curl --disable --noproxy '*' --silent --show-error \
--max-time 5 --header 'Content-Type: application/json' \
--data-binary @- --write-out '\nHTTP %{http_code}\n' \
http://127.0.0.1:4318/v1/traces
Receiver deltas and sink ID
In a third terminal, take a baseline snapshot of the sender counters. For the healthy case, run sh send-span.sh healthy. Read the HTTP status and response body, including any OTLP partial-success details. Wait for the batch and sink output, then take another snapshot. This shell function shows the relevant metric families with their labels and allows for a Prometheus _total suffix on counters.
snapshot() {
date -u
curl --disable --noproxy '*' --fail --silent --show-error \
--max-time 5 http://127.0.0.1:8888/metrics |
awk '
/^otelcol_receiver_(accepted|refused)_spans(_total)?[{ ]/ { print }
/^otelcol_exporter_(enqueue_failed|send_failed|sent)_spans(_total)?[{ ]/ { print }
/^otelcol_exporter_queue_(size|capacity)[{ ]/ { print }
'
}
snapshot
sh send-span.sh healthy
# Wait for the batch and look for the matching IDs in Terminal 1.
snapshot
Compare the accepted and refused span deltas for the same otlp HTTP receiver, process instance and time interval. In the isolated healthy run, expect one more accepted span and no increase in refused spans. An increase in refused spans calls for the receiver log and the response it returned. A bad route or a request that fails before it can be decoded may produce an HTTP error with no refused-span increment. An absent metric series is different from a series you observed at zero. Check the full scrape if the filter finds nothing, and use its labels to identify the receiver and exporter you intend to compare. otelcol_exporter_send_failed_spans rises only after retries have run out, or when the exporter treats the error as permanent, as in the wrong-path 404. It stays unchanged while a retryable send is still in progress. A missing APM destination is invisible to the Collector: the Hosted OpenTelemetry endpoint can accept the request, so this counter will not catch a trace that was received but not stored. OpenTelemetry Collector internal telemetry.
Find trace ID 0123456789abcdef0123456789abcdef and span ID 0123456789abcdef together in both terminals. The sender’s debug output locates the span after its batch processor. The sink’s debug output proves that the named branch reached the receiver and made it through the sink’s trace pipeline. You can also inspect the sink’s acceptance counter at http://127.0.0.1:8889/metrics with the same filter, but the counter has no span identity. A successful response from port 4318 can arrive before the exporter on that Collector has tried port 5318.
Span #0
Trace ID : 0123456789abcdef0123456789abcdef
ID : 0123456789abcdef
Name : example-checkout
In a busier pipeline, check what runs between the receiver and the exporter. A processor can intentionally filter out a span or hold it while assembling a batch. A debug exporter beside the named exporter sees data after the same processors. Its presence confirms that the span reached that branch point. Filter exporter telemetry by the full ID otlphttp/local-sink so the debug branch’s successes don’t count towards delivery to the sink. OpenTelemetry Collector troubleshooting.
Decide whether spans are waiting or lost
Sink outage and retry
Leave the sender running and stop the sink with Ctrl+C. Take a sender snapshot, then run sh send-span.sh outage. The sender should accept the span and print it after batching. Once its exporter tries the now-closed port, look for a connection error and a retry message. As soon as you see that message, restart the sink with its original config while the sender is still inside the one-minute retry horizon. Allow time for a scheduled retry. Look for trace ID 0123456789abcdef0123456789abcde0 and span ID 0123456789abcde0 in the restarted sink’s output. Take the final sender snapshot after the match or after a terminal error.
The retry log can show a failed attempt even when the same span later reaches the sink. Treat send-failure counters as scoped to the exporter and the stage that records them. Depending on where a build records failures, a retry may be visible in logs without an increment in the failed-spans series. Even where a failure counter rises, it carries no trace ID and can include other requests. In this exercise the recovered sink must print both IDs before you record delivery. If the retry horizon expires first, use the terminal exporter error and the missing sink match together. The retry budget starts when the exporter begins working on a request. Earlier time in the SDK, batch processor or queue can extend the total wait. Resending the ID yourself would make the recovery ambiguous.
Queue size is a gauge. Compare it with capacity and check the queue’s configured unit before relating it to spans. A single span can move into a worker almost immediately and retry there while the queue gauge reads zero. In a busy pipeline, sustained growth toward capacity shows requests backing up behind the consumers. A brief rise followed by a fall can mean the consumers caught up, or that requests stopped retrying after a terminal error. Read the occupancy alongside the logs and the sink match.
Wrong sink path
Leave the sink running on 5318. Stop the sender, add this field under its otlphttp/local-sink exporter and restart the sender. The trace-specific URL takes precedence over the base endpoint. The sink still listens on its normal OTLP trace path.
traces_endpoint: http://127.0.0.1:5318/not-a-traces-route
Take a fresh baseline after the sender restarts and run sh send-span.sh wrong-path. Wait for the batch and inspect the sender exporter’s log. Expect the sender’s own receiver to accept the span and the outbound POST to get a 404 from the sink’s HTTP server. The exporter should treat that response as permanent. Expect no match for trace ID 0123456789abcdef0123456789abcde1 and span ID 0123456789abcde1 in the sink’s trace output. Remove traces_endpoint and restart the sender to restore the healthy route. Longer retries can’t correct a wrong URL.
Enqueue failure vs send failure
An enqueue failure happens before the exporter’s worker can attempt that send. If the sending queue has no space and rejects the request, or a persistent queue fails to write it, the exporter can report failed enqueue for those spans. Its send retry loop has no queued copy to retry. Check the enqueue counter and queue errors together. In this example, the batch processor can already have returned success to the receiver by the time downstream enqueue fails. An upstream retry depends on what the caller or an earlier component observed and how that component handles the error.
Check restarts before subtracting counters or declaring that a queue drained. Each new process starts a new counter series or resets its values. Take a new baseline when you restart the sender for the path test. In the outage test the sink restarts, so compare its counters only within the new instance. Keep the sender’s observation window open long enough for the batch to flush and for the relevant retries to finish. When a batch is still waiting, record the last observed boundary and the next time you’ll check.
The sender here has an in-memory sending queue. A restart can lose work still buffered in memory. A persistent sending queue backed by a configured storage extension can recover entries written to durable storage when the Collector reopens the same storage after restart. Data held by a processor before enqueue and data rejected by the queue sit outside that protection. Capture counters and logs before restarting if you can. Afterwards, use the new process’s logs and sink-side IDs to establish what was recovered. Check retry expiry and permanent errors even when the queue is persistent. OpenTelemetry Collector resiliency and queue persistence.
Failure matrix
These are expected examples for the one-span loopback runs. The receiver delta is for the sender’s OTLP/HTTP receiver within the same process. A refused delta of zero describes no new refused spans. If the series is absent, record that separately. The queue trend is for otlphttp/local-sink and can miss a transient with a single request. Pick the row that matches the evidence you’ve collected so far.
| Last observed component | Receiver delta | Queue trend | Sink ID | Next owner |
|---|---|---|---|---|
| Healthy example. Sink debug exporter | Accepted +1, refused +0 | At or back to baseline | 0123456789abcdef matched with its trace ID | Destination owner if storage is still in question |
| Outage example, before recovery. Sender exporter retry | Accepted +1, refused +0 | May read zero with the request in a worker | No match yet for 0123456789abcde0 | Sink operator restores the listener |
| Outage example, after recovery. Sink debug exporter | Accepted +1, refused +0 over the whole run | At or back to baseline once delivered | 0123456789abcde0 matched with its trace ID | Collector operator records the recovery |
| Wrong-path example. Sender exporter gets HTTP 404 | Accepted +1, refused +0 | At or back to baseline after rejection | No match for 0123456789abcde1 | Collector operator fixes the trace URL |
Check the receiving system and close the incident
Hosted route and storage
Review the configured destination, protocol, path and recorded response together. The local example uses plain OTLP/HTTP. Hosted OpenTelemetry uses Basic-authenticated OTLP/HTTP over HTTPS on port 443. If the exporter takes a base URL, check the full path it constructs. If it takes a trace-specific URL, check that it points to /v1/traces. A connection error points to the route or listener, and a 404 to the requested route. A 401 or 403 points to authentication or access. For Hosted OpenTelemetry, the username is {stackId}-otel and the password is the Hosted OpenTelemetry API key from the Endpoints page, not the OpenSearch -es key. Use the destination’s documented response behaviour, including any partial-success details, when you classify the result. Hosted OpenTelemetry quickstart and signal matrix. On an existing Logs stack, Hosted OpenTelemetry must be switched on. Open the Endpoints page, then choose Switch on on the Hosted OpenTelemetry card.
For traces sent through the Hosted OpenTelemetry endpoint, verify that the Logs stack has the APM add-on linked. The request can be accepted without the trace being stored if the add-on is missing, and Collector send-failed counters will not rise in that case. If APM is not linked, the Endpoints page shows “Traces received. Add APM to view them.” In that case the next owner is the stack owner who can verify the APM link. The counters and queue evidence in this guide come from your customer-run otelcol-contrib process.
If the APM link was in place, check the corresponding APM stack in Jaeger. Select the service name from the span resource and a search window that covers the trace timestamps. A delayed export can arrive well after the span ended. Search around when the request ran as well as checking the time the exporter reported delivery. Open the matching trace and confirm that it contains the span you followed. If it’s still missing, share the IDs, service name, span times, response and APM stack with the destination owner. Keep credential values and span attributes out of the handoff. Check the service and time window in Jaeger. If Jaeger stays empty after the times and service line up, work through First APM Traces on Logit.io. For the hosted endpoint itself, see Hosted OpenTelemetry on Logit.io.
FAQ
Why does the Collector receive spans but not export traces?
The receiver delta shows that data entered the Collector. Check the named exporter’s membership in the trace pipeline, then give the processors time to release the batch. If the span reaches a debug branch, check queue and exporter evidence for the sibling branch and match the IDs at its destination.
Does a send failure mean the Collector dropped my span?
A retryable send error leaves room for a later attempt to succeed. In the outage exercise, the sink ID match confirms this. Check for a terminal rejection, expired retries or failed enqueue to identify where recovery ended. Keep the exporter ID and observation window with that evidence.
What does the free trial include?
The 14-day free trial includes every feature, including Hosted OpenTelemetry and APM with Jaeger. No credit card is required. For traces through Hosted OpenTelemetry, check that the APM add-on is linked to the sending Logs stack.
Next steps
Record the span ID and trace ID, the observation window, the last component that saw the span and the owner of the next check. Once transport works, review Hosted OpenTelemetry if you’re choosing where to receive traces. Hosted OpenTelemetry. If you already have an OpenTelemetry pipeline, point it at Logit.io by changing three settings.
Unlock complete visibility with hosted ELK, Grafana, and Prometheus-backed Observability
