Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: should_send_default_pii shortcut #2844

Merged

Conversation

szokeasaurusrex
Copy link
Member

@szokeasaurusrex szokeasaurusrex commented Mar 19, 2024

Currently, with the new scope API, calls to hub._should_send_default_pii need to be replaced with calls to sentry_sdk.get_client().should_send_default_pii.

This PR introduces scope.should_send_default_pii as a drop-in replacement for hub._should_send_default_pii, so we don't need to type out sentry_sdk.get_client().should_send_default_pii everywhere we need to check should_send_default_pii.

Copy link
Contributor

@sentrivana sentrivana left a comment

Choose a reason for hiding this comment

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

Nice!

@szokeasaurusrex szokeasaurusrex merged commit a046901 into sentry-sdk-2.0 Mar 19, 2024
111 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/should-send-default-pii-shortcut branch March 19, 2024 10:46
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.

3 participants