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

feat(pyreqwest): Support data_collection filtering for URL query params by ericapisani · Pull Request #7288 · getsentry/sentry-python · GitHub

feat(pyreqwest): Support data_collection filtering for URL query params - #7288

Open
ericapisani wants to merge 1 commit into
py-2743-httpx2-data-collectionfrom
py-2746-pyreqwest-data-collection
Open

feat(pyreqwest): Support data_collection filtering for URL query params#7288
ericapisani wants to merge 1 commit into
py-2743-httpx2-data-collectionfrom
py-2746-pyreqwest-data-collection

Conversation

ericapisani commented Aug 28, 2026
edited
Loading

Copy link
Copy Markdown
Member

Previously the pyreqwest integration only redacted URL query params
and fragments based on send_default_pii, always leaking the full
query string when PII collection was enabled. Now the
data_collection experiment's url_query_params allow/deny list is
applied to spans and breadcrumbs, matching the behaviour already
shipped for httpx.

Legacy (non span-streaming) breadcrumbs still report the bare URL
without the query string, but the query value itself is filtered
consistently with span streaming.

Fixes PY-2746
Fixes #7281

Previously the pyreqwest integration only redacted URL query params
and fragments based on send_default_pii, always leaking the full
query string when PII collection was enabled. Now the
data_collection experiment's url_query_params allow/deny list is
applied to spans and breadcrumbs, matching the behaviour already
shipped for httpx.

Legacy (non span-streaming) breadcrumbs still report the bare URL
without the query string, but the query value itself is filtered
consistently with span streaming.

Fixes PY-2746
Fixes #7281

linear-code Bot commented Aug 28, 2026

Copy link
Copy Markdown

PY-2746

ericapisani marked this pull request as ready for review August 28, 2026 18:06
ericapisani requested a review from a team as a code owner August 28, 2026 18:06

github-actions Bot commented Aug 28, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Codecov Results 📊

120425 passed | ⏭️ 6762 skipped | Total: 127187 | Pass Rate: 94.68% | Execution Time: 435m 18s

📊 Comparison with Base Branch

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

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2485 uncovered lines.
✅ Project coverage is 90.31%. Comparing base (base) to head (head).

Files with missing lines (1)
File Patch % Lines
sentry_sdk/integrations/pyreqwest.py 100.00% ⚠️ 1 partials
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    90.29%    90.31%    +0.02%
==========================================
  Files          193       193         —
  Lines        25601     25653       +52
  Branches      9436      9456       +20
==========================================
+ Hits         23116     23168       +52
- Misses        2485      2485         —
- Partials      1435      1441        +6

Generated by Codecov Action

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.

Update pyreqwest integration to support data collection

1 participant


Back | FazBrowse Home | New Git URL