Add attempted_retries and max_retries fields to SpendLogsMetadata so the Logs page can display how many retries occurred for each request. The router now injects retry tracking metadata before each make_call, which flows through the logging pipeline into the spend logs metadata JSON. The UI shows "Not Retried" when the first attempt succeeded, and "N / M" (attempted / max) when retries occurred. The field is hidden for requests that did not go through the router. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| test_cloudzero_endpoints.py | ||
| test_spend_management_endpoints.py | ||
| test_spend_query_optimization.py | ||
| test_spend_tracking_utils.py | ||