You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gql: transport URL is sent as request.url without removing credentials #8216
_request_info_from_transport in sentry_sdk/integrations/gql.py copies transport.url into event["request"]["url"] unchanged. This isn't gated on send_default_pii or data_collection, and EventScrubber doesn't look at request.url.
httpx, aiohttp, pyreqwest and stdlib all call parse_url(url, sanitize=False), so gql could do the same: put .url in url and .query in query_string. I'm happy to send a PR with a test if that approach works for you.
Hey @Mohil-Ahuja, thanks for the report! This is indeed a bug. If you already have a branch ready, feel free to submit a PR. Otherwise, we'll pick this up.
Activity
linear-code commentedon Nov 8, 2026
PY-3071
sentrivana commentedon Nov 9, 2026
Hey @Mohil-Ahuja, thanks for the report! This is indeed a bug. If you already have a branch ready, feel free to submit a PR. Otherwise, we'll pick this up.
fix(gql): Remove credentials and query values from the transport URL (g…