[Bug]: Jaeger Query unable to fetch store span index
What happened?
What happened?
Jaeger Query is unable to fetch and query spans from the configured span index.
The spans are present in the storage backend and can be verified directly in the underlying storage/index, but Jaeger Query is unable to retrieve them through the UI/API.
As a result, searching for traces/spans does not return the expected results even though the corresponding span documents exist in the storage backend.
Steps to reproduce
- Configure Jaeger to use the storage backend containing the span data.
- Ingest spans into Jaeger.
- Verify that the span documents are present in the storage backend/span index.
- Open the Jaeger UI and search for the service/operation/tag corresponding to an existing span.
- The expected spans/traces are not returned.
- Query the storage backend directly and confirm that the span documents are present.
Expected behavior
Jaeger Query should be able to query the span index and return spans/traces that exist in the configured storage backend.
Relevant log output
Jaeger Query is unable to fetch/query the span index, so existing spans are not returned by the Jaeger UI/API.
The data is present in the storage backend, but Jaeger behaves as if the spans cannot be found.
#### Old version 2.20
root@XXX:~# curl -kis https://XXXX:16686/api/traces?service=jaeger
HTTP/2 200
content-type: application/json
traceresponse: 00-872be1501f61bf42a606f073abb09b74-4501eaad31e5fc34-01
date: Sat, 19 Sep 2026 09:33:23 GMT
{"data":[{"traceID":"4dbf5ad4744967d6e9dcda22ae40fc90","spans":[{"traceID":"4dbf5ad4744967d6e9dcda22ae40fc90","spanID":"6d9d02a78ec5adeb","operationName":"/","references":[],"startTime":1789810398127508,"duration":208,"tags":[{"key":"otel.scope.name","type":"string","value":"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"},{"key":"otel.scope.version","type":"string","value":"0.69.0"},{"key":"client.address","type":"string","value":"10.10.71.162"},{"key":"http.request.method","type":"string","value":"GET"},{"key":"http.response.body.size","type":"int64","value":5992},{"key":"http.response.status_code","type":"int64","value":200},
### new version 2.21
$ curl -kis https://XXXX:16686/api/v3/operations?service=jaeger
HTTP/2 200
content-type: application/json
traceresponse: 00-aadd387effc53cd3a172c7ce2a82613b-47f51fa40aac3840-01
content-length: 672
date: Sat, 19 Sep 2026 09:48:01 GMT
{"operations":[{"name":"/","spanKind":"internal"},{"name":"/api/","spanKind":"internal"},{"name":"/api/traces/{traceID}","spanKind":"internal"},{"name":"/api/v3/operations","spanKind":"internal"},{"name":"/api/v3/services","spanKind":"internal"},{"name":"/api/v3/trace-summaries","spanKind":"internal"},{"name":"/api/v3/traces","spanKind":"internal"},{"name":"FindTraceIDs","spanKind":"internal"},{"name":"FindTraceSummaries","spanKind":"internal"},{"name":"GetOperations","spanKind":"internal"},{"name":"GetService","spanKind":"internal"},{"name":"GetTrace","spanKind":"internal"},{"name":"findTraceIDs","spanKind":"internal"},{"name":"multiRead","spanKind":"internal"}]}
$Screenshot
No response
Additional context
The main issue is that the span documents are present and queryable directly in the storage backend, but Jaeger Query cannot use the span index to find/fetch those spans.
I can provide the relevant Jaeger Query logs, storage query, index mapping, and example span document if needed.
Jaeger backend version
v2.21.0
SDK
Pipeline
No response
Stogage backend
Elastic search
Operating system
Ubuntu
Deployment model
Docker
Deployment configs
root@:/var/opt/jaeger/config# cat /opt/jaeger/docker-compose.yml
services:
jaeger:
image: XXXXXX/jaegertracing/jaeger:2.21.0
container_name: jaeger
hostname: jaeger
command:
- --config=/cmd/jaeger/config/configuration.yml
ports: ['14268:14268', '14250:14250', '4318:4318', '4317:4317', '16686:16686', '16685:16685', '5778:5778', '9411:9411', '8888:8888', '13133:13133']
restart: "unless-stopped"
volumes: ['/var/opt/jaeger/config:/cmd/jaeger/config', '/var/opt/jaeger/tls:/cmd/jaeger/tls', '/usr/local/share/ca-certificates/XXXXXX.crt:/cmd/jaeger/tls/XXXXX.crt:ro']
logging:
driver: fluentd
options:
fluentd-address: unix:///var/run/fluent-bit.sock
fluentd-async: 'true'
fluentd-buffer-limit: '8192'
fluentd-retry-wait: 5s
fluentd-sub-second-precision: 'true'
root@:/var/opt/jaeger/config# cat configuration.yml
#
# Ansible managed
#
---
service:
extensions:
- jaeger_storage
- jaeger_query
- healthcheckv2
pipelines:
traces:
receivers:
- otlp
processors:
- batch
exporters:
- jaeger_storage_exporter
telemetry:
resource:
service.name: jaeger
metrics:
level: detailed
readers:
- pull:
exporter:
prometheus:
host: 0.0.0.0
port: 8888
logs:
level: info
encoding: json
extensions:
healthcheckv2:
use_v2: true
component_health:
include_permanent_errors: false
include_recoverable_errors: true
recovery_duration: 5m
http:
endpoint: 0.0.0.0:13133
tls:
cert_file: /cmd/jaeger/tls/jaeger.crt
key_file: /cmd/jaeger/tls/jaeger.key
status:
enabled: true
path: /health/status
jaeger_query:
storage:
traces: elastic_storage
base_path: /
ui:
config_file: /cmd/jaeger/config/configuration-ui.json
grpc:
endpoint: 0.0.0.0:16685
http:
endpoint: 0.0.0.0:16686
tls:
cert_file: /cmd/jaeger/tls/jaeger.crt
key_file: /cmd/jaeger/tls/jaeger.key
jaeger_storage:
backends:
elastic_storage:
elasticsearch:
server_urls:
- https://XXXXX:9200
tls:
ca_file: /cmd/jaeger/tls/XXXXXX.crt
auth:
basic:
username: XXXXX
password: XXXXX
indices:
index_prefix: null
spans:
date_layout: 2006.01.02
rollover_frequency: day
shards: 1
replicas: 1
services:
date_layout: 2006.01.02
rollover_frequency: day
shards: 1
replicas: 1
dependencies:
date_layout: 2006.01.02
rollover_frequency: day
shards: 1
replicas: 1
sampling:
date_layout: 2006.01.02
rollover_frequency: day
shards: 1
replicas: 1
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
tls:
cert_file: /cmd/jaeger/tls/jaeger.crt
key_file: /cmd/jaeger/tls/jaeger.key
processors:
batch: {}
exporters:
jaeger_storage_exporter:
trace_storage: elastic_storage
queue:
num_consumers: 10
queue_size: 100
root@:/var/opt/jaeger/config#Source: jaegertracing/jaeger