FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(httpx): Gate url.full, url.query, and url.fragment behind send_default_pii by ericapisani · Pull Request #6668 · getsentry/sentry-python · GitHub

fix(httpx): Gate url.full, url.query, and url.fragment behind send_default_pii - #6668

Merged
ericapisani merged 1 commit into
masterfrom
py-2558-httpx-pii-gating
Jun 26, 2026
Merged

fix(httpx): Gate url.full, url.query, and url.fragment behind send_default_pii#6668
ericapisani merged 1 commit into
masterfrom
py-2558-httpx-pii-gating

Conversation

ericapisani commented Jun 25, 2026
edited
Loading

Copy link
Copy Markdown
Member

Gate url.full, url.query, and url.fragment span attributes behind send_default_pii in the httpx integration, consistent with the aiohttp and wsgi integrations. These attributes can contain sensitive data (query parameters, fragments), so they should only be captured when the user has opted in.

Fixes PY-2558
Fixes #6667

…fault_pii

These URL attributes can contain PII (query params, fragments), so they
should only be set when send_default_pii is enabled, consistent with the
aiohttp and wsgi integrations.

Refs #2558
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

linear-code Bot commented Jun 25, 2026

Copy link
Copy Markdown

PY-2558

Copy link
Copy Markdown
Contributor

Codecov Results 📊

89953 passed | ⏭️ 6240 skipped | Total: 96193 | Pass Rate: 93.51% | Execution Time: 318m 19s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +48
Passed Tests 📈 +48
Failed Tests
Skipped Tests

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2401 uncovered lines.
❌ Project coverage is 89.91%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    89.93%    89.91%    -0.02%
==========================================
  Files          192       192         —
  Lines        23784     23785        +1
  Branches      8210      8210         —
==========================================
+ Hits         21389     21384        -5
- Misses        2395      2401        +6
- Partials      1342      1342         —

Generated by Codecov Action

ericapisani marked this pull request as ready for review June 25, 2026 18:53
ericapisani requested a review from a team as a code owner June 25, 2026 18:53
ericapisani merged commit 3434c47 into master Jun 26, 2026
144 checks passed
ericapisani deleted the py-2558-httpx-pii-gating branch June 26, 2026 11:18
mgaligniana pushed a commit to mgaligniana/sentry-python that referenced this pull request Aug 9, 2026
…fault_pii (getsentry#6668)

Gate `url.full`, `url.query`, and `url.fragment` span attributes behind
`send_default_pii` in the httpx integration, consistent with the aiohttp
and wsgi integrations. These attributes can contain sensitive data
(query parameters, fragments), so they should only be captured when the
user has opted in.

Fixes PY-2558
Fixes getsentry#6667
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gate url.full behind the PII flag in httpx

2 participants


Back | FazBrowse Home | New Git URL