The span for POST /checkout started at 14:02:11, ended 212 milliseconds later, and then waited in a BatchSpanProcessor queue for its batch to be sent. Four seconds after that, the pod was replaced by a rolling deploy, the queue was never flushed, and the span ceased to exist. In Jaeger, the search for the checkout service returned nothing, and the team spent an afternoon reading Jaeger configuration that was perfectly fine.

That is the core difficulty with this problem: an empty Jaeger page tells you that a span was lost, but not where. The approach below replaces guessing with a fixed order of checks, one per hop, each of which gives a yes or no answer.

Where a span can disappear between your code and the UI

A finished span passes through up to five stages before you can click on it. The SDK decides whether to record and sample it. A span processor, normally the batch processor, buffers it. An exporter serialises it and sends it over OTLP. Optionally, an OpenTelemetry Collector receives, processes and forwards it. Finally Jaeger receives it, writes it to storage and serves it through the query UI on port 16686.

Each stage has its own failure mode and its own evidence. The SDK can drop a span silently through sampling. The processor can drop it when its queue overflows or when the process exits without a flush.

The exporter can send it to the wrong port, protocol or path, and many SDKs log that failure only at debug level. The Collector can accept it and then have no exporter in the pipeline. Jaeger can store it under a service name you are not searching for, or in memory that a restart wiped.

The fastest diagnostic is to split the path in half. Add a console or debug exporter next to the OTLP one. If spans print, everything before the exporter works and you only need to look downstream. If nothing prints, Jaeger is innocent.

Endpoint, port and protocol: the mismatch behind most empty searches

OTLP has two transports on two default ports: gRPC on 4317 and HTTP on 4318. Jaeger accepts both natively, and since Jaeger v2, released in November 2024, Jaeger itself is built on the OpenTelemetry Collector. On older 1.x releases, roughly from 1.35 into the mid 1.40s, the OTLP receiver had to be enabled with COLLECTOR_OTLP_ENABLED=true, and plenty of tutorials still show that flag.

The subtle part is the endpoint path. With OTEL_EXPORTER_OTLP_ENDPOINT, an HTTP exporter appends /v1/traces for you. With the signal specific OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, the value is used exactly as given, so it must already include /v1/traces. Setting the signal specific variable to http://jaeger:4318 sends spans to the root path, which returns 404, and the SDK may only mention it in a debug log.

Symptom Likely cause Check that proves it
No service in the Jaeger dropdown at all Wrong port or protocol, for example gRPC sent to 4318 Compare OTEL_EXPORTER_OTLP_PROTOCOL with the port; enable exporter debug logs
404 or connection errors in debug logs Signal specific endpoint without /v1/traces Print the effective endpoint at startup
Service shows as unknown_service OTEL_SERVICE_NAME not set Search unknown_service in Jaeger
Works locally, empty in Docker or Kubernetes Endpoint points at localhost inside a container Exec into the container and curl the endpoint
Some traces, never the ones you expect Parent based sampling follows an unsampled caller Inspect the incoming traceparent flags
Spans arrive minutes late or in the future Clock skew between hosts Compare host time with chrony or timedatectl

Protocol defaults also differ between languages. The OpenTelemetry Java agent 2.x defaults to http/protobuf on 4318, while many Go and older Python setups use gRPC on 4317. When a team copies one service's configuration to another, this is often the first thing that breaks. In Go, a plaintext gRPC exporter also needs WithInsecure(), or OTEL_EXPORTER_OTLP_INSECURE=true, otherwise it tries TLS against a port that does not speak it.

Spans that never leave the process

If the console exporter prints nothing, look at sampling and span lifecycle before any network setting.

The default sampler is parentbased_always_on. "Parent based" means that if an incoming request carries a traceparent header with the sampled flag set to 00, your service obeys it and drops the span. An API gateway or a load balancer configured to sample 1 percent will silently decide for every service behind it. A span that is started but never ended is never exported at all, which happens with early returns and exceptions that skip span.end().

Then there is the batch processor. By default it sends a batch every 5,000 ms or when 512 spans are waiting, keeps at most 2,048 spans in its queue, and drops anything beyond that. Short lived processes, such as CLI tools, cron jobs, AWS Lambda functions and test runs, often exit before the first scheduled export. The fix is to call the tracer provider's shutdown or force flush before exit, which every official SDK offers.

The queue limit matters during outages. The arithmetic is simple:

spans_buffered = span_rate x outage_seconds
spans_dropped  = max(0, spans_buffered - max_queue_size)

example: 300 spans/s, Collector restart of 20 s, max queue 2048
spans_buffered = 300 x 20 = 6000
spans_dropped  = 6000 - 2048 = 3952   (about 66 percent of that window)

A gap in Jaeger that lines up exactly with a Collector deploy is this formula at work, not a Jaeger bug. Raising OTEL_BSP_MAX_QUEUE_SIZE trades memory for coverage; a Collector with retry and a sending queue is the sturdier fix.

When the Collector sits in the middle

A Collector adds one more place to lose spans and three good places to look. First, its configuration: a receiver that is defined but not referenced under service.pipelines.traces does nothing, and the same goes for an exporter. A pipeline that lists the otlp receiver and only a metrics exporter accepts traces and throws them away.

Second, its own telemetry. The Collector exposes internal metrics, by default on port 8888, including counters such as otelcol_receiver_accepted_spans and otelcol_exporter_sent_spans, plus failure counters for each. If accepted rises and sent stays flat, the problem is between the Collector and Jaeger. If accepted stays at zero, the application never reached the Collector.

Third, the debug exporter. Adding it to the traces pipeline with verbosity set to detailed prints every span the Collector handles, including resource attributes such as service.name, which settles arguments about naming quickly. Remove it afterwards, because at production volume it floods the logs.

An illustrative case: traces that only appeared from laptops

This case is illustrative, a composite of a pattern common in teams moving from Docker Compose to Kubernetes.

A team of 6 engineers instruments a Python service and a Node.js service. On their laptops, both send OTLP to http://localhost:4318 and Jaeger all-in-one shows every request. After the move to a staging Kubernetes cluster, Jaeger shows nothing from either service for 2 days.

Splitting the path settles it in 30 minutes. A console exporter added through configuration prints spans in both pods, so the SDK side works. An exec into the Python pod and a curl to localhost:4318 returns "connection refused": inside the pod, localhost is the pod itself, and Jaeger lives in another namespace. The endpoint becomes http://jaeger-collector.observability:4318, and Python traces appear within a minute.

Node.js still shows nothing. Its configuration sets OTEL_EXPORTER_OTLP_TRACES_ENDPOINT to the same base URL without /v1/traces, so every export hits the wrong path. After that fix, both services show up. The total change was 2 environment variables; the expensive part was the 2 days spent assuming Jaeger was broken.

Questions engineers ask when Jaeger shows nothing

Do I still need the Jaeger exporter in my OpenTelemetry SDK? No. The dedicated Jaeger exporters were deprecated in the OpenTelemetry SDKs in 2023 and removed from most of them since. Jaeger accepts OTLP directly, so the standard OTLP exporter is the supported path, and old Jaeger agent ports such as 6831 over UDP only matter for legacy clients.

Why does Jaeger show my service but only some of its traces? Check the result limit and the sampler first. The Jaeger search page returns 20 traces by default, so a busy service looks sparse until you raise the limit, and a ratio sampler such as parentbased_traceidratio with an argument of 0.1 keeps roughly one trace in ten by design.

Why do all my traces disappear after Jaeger restarts? The all-in-one image keeps traces in memory by default. Every restart, including a Kubernetes pod reschedule, empties it. For anything beyond local debugging, point Jaeger at persistent storage such as Elasticsearch, OpenSearch or Cassandra, or at a trace backend built for retention.

Can I see spans without Jaeger at all, to prove the SDK works? Yes. Most SDKs ship a console exporter that prints finished spans to standard output, and the Collector has a debug exporter. If spans print locally but never reach Jaeger, the instrumentation is fine and the problem sits in transport or configuration.

Every check above assumes you notice the missing traces in the first place. Most teams only find out during an incident, when the one trace they need is absent. Which leaves a question worth taking to your next platform review: what alert would tell you, within 10 minutes, that a service has stopped sending spans?