litellm/scripts/trace_codegen/schemas/traces
Yujong Lee 180b5ee482 refactor(traces): read traces through a five-method storage port
Trace storage now answers five storage-neutral reads: runs, run_counts,
spans, span_text and calls. Query and row types live in
litellm_traces::store with no ClickHouse encodings, and traces-clickhouse
only adapts them, so another backend implements five queries instead of
one SQL file per UI widget

The runs list, histogram, field values, trace graph, span detail, error
paging and cost lookup all go through the port. Paging, the graph budget,
excerpting and the agent output fallback moved out of SQL into
TraceReader. QueryScope is the only access wire, and every SQL file reads
owned_spans, owned_runs and owned_calls CTEs built from one ownership rule
per table that the console row policy also renders

Cursors are tagged with their kind, and run search terms reach storage as
raw text and globs. This also carries the run histogram and values
endpoints, the gateway-traces router and the agent label rollup
2026-10-04 15:39:45 -07:00
..
QueryScope.json
RunField.json refactor(traces): read traces through a five-method storage port 2026-10-04 15:39:45 -07:00
RunValues.json refactor(traces): read traces through a five-method storage port 2026-10-04 15:39:45 -07:00
SpanDetail.json
SpanErrorPage.json
Tenant.json
Trace.json fix(lens): paginate trace reads within ClickHouse limits (#44384) 2026-10-03 10:38:40 -07:00
TraceHistogram.json refactor(traces): read traces through a five-method storage port 2026-10-04 15:39:45 -07:00
TracePage.json fix(lens): paginate trace reads within ClickHouse limits (#44384) 2026-10-03 10:38:40 -07:00