Skip to content

ref(httpx2): Drop send_default_pii support - #7830

Merged
sentrivana merged 1 commit into
major/3.0from
ivana/major/drop-pii-httpx2
Oct 2, 2026
Merged

sentrivana merged 1 commit into
major/3.0from
ivana/major/drop-pii-httpx2

Conversation

@sentrivana

@sentrivana sentrivana commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

@linear-code

linear-code Bot commented Oct 2, 2026

Copy link
Copy Markdown

PY-2862

@sentrivana
sentrivana marked this pull request as ready for review October 2, 2026 10:25
@sentrivana
sentrivana requested a review from a team as a code owner October 2, 2026 10:25
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ 57746 passed | ⏭️ 2727 skipped | Total: 60473 | Pass Rate: 95.49% | Execution Time: 162m 16s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -78846
Passed Tests 📉 -74352
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 2054 uncovered lines.
❌ Project coverage is 90.15%. Comparing base (3fbf06b) to head (766f145).

Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
- Coverage    90.34%    90.15%    -0.19%
==========================================
  Files          202       185       -17
  Lines        26551     20860     -5691
  Branches      9856      7244     -2612
==========================================
+ Hits         23988     18806     -5182
- Misses        2563      2054      -509
- Partials      1487      1206      -281

Generated by Codecov Action

@sentrivana
sentrivana merged commit 974538c into major/3.0 Oct 2, 2026
147 checks passed
@sentrivana
sentrivana deleted the ivana/major/drop-pii-httpx2 branch October 2, 2026 10:55
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