fix(asgi): Gate query string and client IP behind send_default_pii #6501
+18
−10
@sentry/warden / warden: find-bugs
completed
Jun 4, 2026 in 1m 4s
1 issue
find-bugs: Found 1 issue (1 medium)
Medium
`url.full` (URL without query string) incorrectly gated behind `should_send_default_pii()` - `sentry_sdk/integrations/_asgi_common.py:124-131`
url.full is the base URL path with no query string — _get_url() docstring says it builds the URL "without also including the querystring" — so gating it behind should_send_default_pii() silently drops the request URL from all ASGI traces when PII is disabled, breaking basic HTTP observability.
⏱ 46.6s · 80.2k in / 4.4k out · $0.23
Annotations
Check warning on line 131 in sentry_sdk/integrations/_asgi_common.py
sentry-warden / warden: find-bugs
`url.full` (URL without query string) incorrectly gated behind `should_send_default_pii()`
`url.full` is the base URL path with no query string — `_get_url()` docstring says it builds the URL "without also including the querystring" — so gating it behind `should_send_default_pii()` silently drops the request URL from all ASGI traces when PII is disabled, breaking basic HTTP observability.
Loading