litellm/tests/logging_callback_tests/gcs_pub_sub_body
yassin fad11fa66e fix(proxy): keep client User-Agent on auth failure spend logs
Auth gate rejections are raised before add_litellm_data_to_request stamps the caller User-Agent and SpendLogsMetadata dropped the field, so failure spend logs and prometheus labels could not identify an abusive client. Stamp requester_ip_address and user_agent on the failure hook payload and carry user_agent through spend log metadata. Request scopes without a headers entry are tolerated.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-09-15 21:02:06 +00:00
..
spend_logs_payload.json fix(proxy): keep client User-Agent on auth failure spend logs 2026-09-15 21:02:06 +00:00
standard_logging_payload.json test logging tests + mcp server QA checks 2025-11-15 08:58:46 -08:00