[Feature]: Support pagination in query APIs
Requirement
A client of the trace search API must be able to retrieve every matching trace, not only the first page. Today FindTraces and FindTraceSummaries return one page capped by search_depth, and everything past the cap is unreachable. The UI cannot offer "load more", and a program walking a time window cannot know whether it saw the whole result.
Design
RFC 0014 settles how this is done: an opaque page_token the caller echoes back for the next page, a next_page_token on the response, and a paginated capability that a backend declares so that one which cannot paginate serves a single capped page and says so, rather than returning a wrong one. Offset paging (limit/offset as in the v1 API) was weighed there and rejected (§3, §10), so a PR adding an offset parameter will be closed.
Status
Delivered:
- M1 protos, in https://github.com/jaegertracing/jaeger-idl/pull/213.
- M2 storage contract, query-service admission and the
PageChunkresponse envelope, in #9570, #9450 and #9585.
Open, in order:
- The
paginatedentry in the capabilities the UI reads, and the §3.2 token fingerprint once a backend mints tokens. - M3 Elasticsearch/OpenSearch, the first paginating backend.
- M4 remote-storage gRPC.
- M5 UI "load more".
Each milestone in the RFC has an exit bar. Pick one, say so here before starting, and keep one milestone per PR.
Supersedes #9369 and #2027, which asked for this with the v1 offset model.
Source: jaegertracing/jaeger