Skip to content

ref(httpx): Remove support for send_default_pii - #7819

Merged
sentrivana merged 3 commits into
major/3.0from
ivana/major/drop-pii-httpx
Oct 2, 2026
Merged

sentrivana merged 3 commits into
major/3.0from
ivana/major/drop-pii-httpx

Conversation

@sentrivana

@sentrivana sentrivana commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

@linear-code

linear-code Bot commented Oct 1, 2026

Copy link
Copy Markdown

PY-2861

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ 57818 passed | ⏭️ 2727 skipped | Total: 60545 | Pass Rate: 95.5% | Execution Time: 157m 27s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -78774
Passed Tests 📉 -74280
Failed Tests 📉 -1
Skipped Tests 📉 -4493

➖ Removed Tests (1)

View removed tests
  • test_cache_spans_item_size[True]
    • File: tests.integrations.django.test_cache_module

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2060 uncovered lines.
❌ Project coverage is 90.12%. Comparing base (3fbf06b) to head (b1ef2ad).

Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
- Coverage    90.34%    90.12%    -0.22%
==========================================
  Files          202       185       -17
  Lines        26551     20860     -5691
  Branches      9856      7244     -2612
==========================================
+ Hits         23988     18800     -5188
- Misses        2563      2060      -503
- Partials      1487      1205      -282

Generated by Codecov Action

@sentrivana
sentrivana marked this pull request as ready for review October 2, 2026 10:08
@sentrivana
sentrivana requested a review from a team as a code owner October 2, 2026 10:08
@sentrivana
sentrivana merged commit 61361a7 into major/3.0 Oct 2, 2026
147 checks passed
@sentrivana
sentrivana deleted the ivana/major/drop-pii-httpx branch October 2, 2026 10:19
sentrivana added a commit that referenced this pull request Oct 29, 2026
### Description

Removes `get_url_attributes_legacy()` from
`sentry_sdk/tracing_utils.py`. Nothing on `major/3.0` calls it anymore.

Its callers were the outgoing HTTP client integrations (pyreqwest,
httpx, httpx2). It handled their old `send_default_pii` behavior. When
#7698, #7819 and #7830 dropped `send_default_pii` support from those
integrations, each one removed its calls and switched to
`get_url_attributes()`. The legacy helper was left behind.

**Evidence**
- On `major/3.0`, `git grep -w get_url_attributes_legacy` matches only
the definition. There are no callers in `sentry_sdk`, `tests`, `scripts`
or `docs`.
- No open PR mentions it. The function doesn't exist on `master`, so a
future `master` → `major/3.0` merge can't bring it back.

`get_url_attributes()` and
`_apply_data_collection_filtering_to_query_string` are still used, so
they stay.

#### Issues
n/a

<!-- junior-request-attribution:start -->
via **Ivana Kellyer**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0BTREZTS2Z%3A1793270559.842119 -->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0BTREZTS2Z%3A1793270559.842119)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0BTREZTS2Z%3A1793270559.842119/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Ivana Kellyer <ivana.kellyer@sentry.io>
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.

2 participants