Skip to content

ref(redis)!: Drop send_default_pii support - #7824

Open
ericapisani wants to merge 2 commits into
major/3.0from
py-2837-redis-send-default-pii
Open

ericapisani wants to merge 2 commits into
major/3.0from
py-2837-redis-send-default-pii

Conversation

@ericapisani

Copy link
Copy Markdown
Member

Redis command arguments are now gated solely on data_collection["database_query_data"]. The send_default_pii fallback in _get_safe_command is removed.

Tests that exercised send_default_pii (including the precedence test) are removed, and the remaining ones use data_collection instead.

Fixes PY-2837
Fixes #7608

Redis command arguments are now gated solely on
`data_collection["database_query_data"]`. The `send_default_pii` fallback
in `_get_safe_command` is removed.

Tests that exercised `send_default_pii` (including the precedence test)
are removed, and the remaining ones use `data_collection` instead.

Fixes PY-2837
Fixes #7608
@ericapisani
ericapisani requested a review from a team as a code owner October 1, 2026 18:25
@linear-code

linear-code Bot commented Oct 1, 2026

Copy link
Copy Markdown

PY-2837

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 27ba446. Configure here.

Comment thread sentry_sdk/integrations/redis/utils.py
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ 58106 passed | ⏭️ 2727 skipped | Total: 60833 | Pass Rate: 95.52% | Execution Time: 163m 21s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -78486
Passed Tests 📉 -73992
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 2055 uncovered lines.
❌ Project coverage is 90.15%. Comparing base (3fbf06b) to head (c67f014).

Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
- Coverage    90.35%    90.15%     -0.2%
==========================================
  Files          202       185       -17
  Lines        26551     20855     -5696
  Branches      9856      7240     -2616
==========================================
+ Hits         23988     18800     -5188
- Misses        2563      2055      -508
- Partials      1487      1205      -282

Generated by Codecov Action

This branch has not been deployed

No deployments
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