litellm/tests/test_litellm/proxy/spend_tracking
yuneng-jiang b78a30f773 [Feature] Add request_duration_ms to SpendLogs
Add a `request_duration_ms` column to `LiteLLM_SpendLogs` to track request
duration. New rows are computed at write time. Legacy rows use a COALESCE
fallback in the `/spend/logs/ui` query to compute duration on the fly from
`endTime - startTime`. The field is also sortable in the UI endpoint.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-24 21:04:53 -08:00
..
test_cloudzero_endpoints.py Adding backend 2025-12-19 13:04:59 -08:00
test_spend_management_endpoints.py [Feature] Add request_duration_ms to SpendLogs 2026-02-24 21:04:53 -08:00
test_spend_query_optimization.py fix(sql): Optimize SpendLogs queries to use timestamp filtering for index usage (#17504) 2025-12-04 21:52:57 -08:00
test_spend_tracking_utils.py [Feature] Add request_duration_ms to SpendLogs 2026-02-24 21:04:53 -08:00