◐ Shell
clean mode source ↗

fix(asgi): Gate query string and client IP behind send_default_pii by ericapisani · Pull Request #6501 · getsentry/sentry-python

Move http.query and client.address attribute collection inside the
should_send_default_pii() check so sensitive values are not captured
by default.

Fixes PY-2514
Fixes #6499

cursor[bot]

sentry[bot]

sentry-warden[bot]

@ericapisani

sentry[bot]

wahajahmed010

@ericapisani

cursor[bot]

sentry[bot]

@ericapisani

@ericapisani

sentrivana

@ericapisani ericapisani deleted the py-2514-gate-asgi-values-behind-pii branch

June 11, 2026 14:51

ericapisani added a commit that referenced this pull request

Jun 12, 2026
Add span streaming support for the Quart integration when the
trace_lifecycle stream experiment is enabled. Sets HTTP request
attributes (method, headers, URL, query, client IP) on the segment
span and uses the correct source constant from sentry_sdk.traces
for span-first mode.

Depends on #6501
being merged first.

Fixes PY-2352
Fixes #6050