litellm/tests/unit/proxy/lens
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
..
__init__.py refactor(lens)!: rename internal engine code and API (#44034) 2026-10-01 11:02:14 -07:00
test_analysis.py fix(lens): preserve full trace access and expose investigation failures (#44406) 2026-10-03 11:52:55 -07:00
test_endpoints.py refactor(lens): storage-independent trace reads, shared keyset pager, typed read failures (#44422) 2026-10-04 12:39:47 -07:00
test_inference.py feat(lens): always-on investigations with findings and investigations tables (#44418) 2026-10-03 20:27:02 +00:00
test_release.py fix(lens): preserve approved worker digests and harden its image (#44467) 2026-10-03 17:54:17 -07:00
test_search.py refactor(traces): read traces through a five-method storage port 2026-10-04 15:39:45 -07:00
test_sources.py fix(lens): preserve full trace access and expose investigation failures (#44406) 2026-10-03 11:52:55 -07:00
test_state.py feat(lens): always-on investigations with findings and investigations tables (#44418) 2026-10-03 20:27:02 +00:00
test_trace_store.py refactor(lens)!: rename internal engine code and API (#44034) 2026-10-01 11:02:14 -07:00
test_worker.py feat(lens): coordinate worker releases and bundled installs (#44428) 2026-10-03 16:33:45 -07:00