litellm/tests/test_litellm/proxy/utils/proxy_logging
yucheng 73dea4c567 fix(proxy): attribute only the raising layer in stream and pipeline blocks
The streaming wrapper caught every exception crossing its boundary and named its own
callback, so a block by an inner guardrail or a provider stream failure also named every
outer guardrail. The wrapper now runs the hook over an upstream boundary that remembers
the exception it raised, and skips attribution when the same exception passes through

Pipeline blocks converted from SensitiveDataRouteException or ModifyResponseException into
a generic guardrail_pipeline_error now still record the blocking step's guardrail

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-09-17 18:58:21 +00:00
..
__init__.py test(proxy/utils): pin ProxyLogging behavior (#29485) 2026-06-02 17:45:39 -07:00
_harness_smoke_test.py test(proxy/utils): pin ProxyLogging behavior (#29485) 2026-06-02 17:45:39 -07:00
conftest.py test(proxy/utils): pin ProxyLogging behavior (#29485) 2026-06-02 17:45:39 -07:00
test_alerting.py fix(proxy): deliver budget alerts on webhook-only alerting and accept ALERTING_WEBHOOK_URL (#38441) 2026-08-31 09:22:36 -07:00
test_callback_capabilities_class.py test: require a match= on broad pytest.raises, and drop duplicate parametrize cases (#37769) 2026-08-20 20:24:49 -07:00
test_callback_capabilities_dataclass.py test(proxy/utils): pin ProxyLogging behavior (#29485) 2026-06-02 17:45:39 -07:00
test_during_call_hook.py fix(proxy): name the blocking guardrail in x-litellm-applied-guardrails 2026-09-17 08:39:01 +00:00
test_guardrail_pipeline.py fix(proxy): attribute only the raising layer in stream and pipeline blocks 2026-09-17 18:58:21 +00:00
test_internal_usage_cache.py test(proxy/utils): pin ProxyLogging behavior (#29485) 2026-06-02 17:45:39 -07:00
test_lifecycle.py fix(proxy): remove duplicate user budget hook that 429'd zero-cost models 2026-09-16 15:42:15 -07:00
test_mcp_bridging.py fix(guardrails): carry MCP caller identity in synthetic metadata instead of trusting top-level fields 2026-09-14 21:37:44 +00:00
test_module_helpers.py test(proxy/utils): pin ProxyLogging behavior (#29485) 2026-06-02 17:45:39 -07:00
test_post_call_failure_hook.py refactor(logging): bill an assembled stream on the failure log via a public Logging method 2026-09-15 20:23:50 +00:00
test_post_call_success_hook.py fix(proxy): name the blocking guardrail in x-litellm-applied-guardrails 2026-09-17 08:39:01 +00:00
test_pre_call_hook.py fix(proxy): name the blocking guardrail in x-litellm-applied-guardrails 2026-09-17 08:39:01 +00:00
test_streaming_hooks.py fix(proxy): attribute only the raising layer in stream and pipeline blocks 2026-09-17 18:58:21 +00:00