litellm/litellm-rust/crates/traces-clickhouse/AGENTS.md
yujonglee 688d791fa0
feat(traces): type queries and align read access with log visibility (#44228)
* wip

* wip

* test(traces): separate root status from diagnostic error counts

* test(traces): cover normalization precedence and fallbacks

* chore(cache): remove stray comments from trace PR

* test(traces): name lens test for shared query path

* fix(traces): place query implementation before test module

* test(traces): use unified read scope in migration tests

* ci(rust): allow feature checks to finish

* ci(mcp): allow dependency resolution to finish

* fix(traces): preserve key visibility and safe spend attribution
2026-10-02 21:55:42 +00:00

751 B

  • Own trace schema, row encoding, SQL query adapters and reader provisioning; consume domain types from litellm-traces
  • Keep generic ClickHouse connections and HTTP execution in litellm-storage-clickhouse; keep PyO3 conversion in python-bridge
  • Keep schema definitions only in migrations/NNNN_description.sql, embedded by litellm_migrate::migrate!
  • Require typed query parameters and SELECT-only readers with server-side limits and tenant isolation
  • Bound insert time and encoded bytes; preserve shared values and explicit retry deduplication
  • Test storage behavior through the public API against ClickHouse
  • Expose one top-level Error enum in src/error.rs; own trace failures and wrap storage errors with #[from] or #[source]