mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-26 22:30:11 +00:00
* feat(tracing): add generated SQL response contract Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * feat(proxy): return data-only trace SQL responses Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * style(rust): format trace response schema 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>
1.3 KiB
1.3 KiB
- Own OTLP decoding, normalization, shared authorization and named query contracts; remain independent of storage and Python
- Never depend on
litellm-traces-clickhouseorlitellm-storage-clickhouse - Preserve decoding limits, normalization precedence and shared resource identity
- Keep ClickHouse schema, row encoding and queries in
litellm-traces-clickhouse; keep PyO3 conversion inpython-bridge - Test decoding and normalization through the public API
- Expose one top-level
Errorenum insrc/error.rsfor decoding and normalization failures - Own the tracing HTTP contracts: request types in
src/request.rs, response types insrc/response.rs, and response views exported fromsrc/schema.rs - Python and the dashboard consume them only through generated code:
uv run scripts/generate_trace_types.pywriteslitellm/rust_bridge/trace/generated/, andnpm run gen:apiinui/litellm-dashboardregeneratesschema.d.tsfrom the proxy's OpenAPI - Declare each bound once as a constant and read it from both the schema attribute and the runtime check
- GET request types accept unknown fields because the routes ignore unknown query parameters; body request types use
deny_unknown_fields - Changing a request or response shape changes the public API; ship it in its own behavior-change PR