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> |
||
|---|---|---|
| .. | ||
| test_cloudzero_endpoints.py | ||
| test_spend_management_endpoints.py | ||
| test_spend_query_optimization.py | ||
| test_spend_tracking_utils.py | ||