Skip to content

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

Open
ericapisani wants to merge 1 commit into
masterfrom
py-2558-httpx-pii-gating
Open

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

Conversation

@ericapisani

@ericapisani ericapisani commented Jun 25, 2026

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

linear-code Bot commented Jun 25, 2026

Copy link
Copy Markdown

PY-2558

@github-actions

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 ericapisani marked this pull request as ready for review June 25, 2026 18:53
@ericapisani ericapisani requested a review from a team as a code owner June 25, 2026 18:53
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

1 participant