litellm/litellm-rust/crates/traces/AGENTS.md
devin-ai-integration[bot] e3c15c9d22
feat(rust): embed migration folders with a shared migrate! macro (#44104)
* feat(rust): embed migration folders with a shared migrate! macro

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(rust): enable syn proc-macro feature for litellm-migrate-macros

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(rust): reject signed versions and symlinks in migrate!

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Yujong Lee <yujong@berri.ai>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-01 17:52:54 -07:00

864 B

  • Keep OTLP decoding, trace schema, row encoding and named query selection here. Generic ClickHouse connections and HTTP execution belong in litellm-storage-clickhouse
  • Keep this crate independent of Python; PyO3 conversion and public Python exceptions belong in python-bridge
  • Keep the SQL migrations here as the only ClickHouse schema definition, as migrations/NNNN_description.sql files embedded by litellm_migrate::migrate!; adding a file is the only step
  • Use typed query parameters and a dedicated SELECT-only reader with server-side limits
  • Keep config/reader.xml grants on the database the schema is created in (CLICKHOUSE_DATABASE, default litellm)
  • Bound insert time and encoded bytes; make retry deduplication behavior explicit for supported ClickHouse versions
  • Test storage behavior through the crate's public API against ClickHouse