Repository navigation
ref(anthropic): Drop send_default_pii support - #7738
Conversation
Codecov Results 📊✅ 61843 passed | ❌ 2 failed | ⏭️ 2861 skipped | Total: 64706 | Pass Rate: 95.58% | Execution Time: 170m 28s 📊 Comparison with Base Branch
➕ New Tests (2)View new tests
❌ Failed Tests
|
| File | Patch % | Lines |
|---|---|---|
| sentry_sdk/integrations/anthropic.py | 75.00% |
Coverage diff
@@ Coverage Diff @@
## master #PR +/-##
==========================================
- Coverage 90.28% 90.18% -0.1%
==========================================
Files 195 179 -16
Lines 26195 21008 -5187
Branches 9758 7524 -2234
==========================================
+ Hits 23649 18946 -4703
- Misses 2546 2062 -484
- Partials 1483 1213 -270Generated by Codecov Action
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 617b2b4. Configure here.

Description
Remove
send_default_piibranches from the integration.Add the
data_collectionoption to all tests for the integration, withgen_aioptions enabled ifsend_default_piiwasTrue, andgen_aioptions disabled ifsend_default_piiwasFalse. Whensend_default_piiwas previously not supplied tosentry_init(), providedata_collection={}.Split tests that were parametrized on
send_default_piiinto two non-parametrized tests, withgen_aioptions enabled and disabled (the latter suffixed with_no_sensitive_data).Remove data collection specific tests, as existing tests now exercise the same code paths.
Issues
Closes #7587
Reminders
uv run ruff.feat:,fix:,ref:,meta:)