diff --git a/sentry_sdk/client.py b/sentry_sdk/client.py index 129002b610..c106373101 100644 --- a/sentry_sdk/client.py +++ b/sentry_sdk/client.py @@ -178,9 +178,6 @@ def dsn(self) -> "Optional[str]": def parsed_dsn(self) -> "Optional[Dsn]": return None - def should_send_default_pii(self) -> bool: - return False - def is_active(self) -> bool: """ .. versionadded:: 2.0.0 @@ -441,14 +438,6 @@ def is_active(self) -> bool: """ return True - def should_send_default_pii(self) -> bool: - """ - .. versionadded:: 2.0.0 - - Returns whether the client should send default PII (Personally Identifiable Information) data to Sentry. - """ - return self.options.get("send_default_pii") or False - @property def dsn(self) -> "Optional[str]": """Returns the configured DSN as string.""" diff --git a/sentry_sdk/scope.py b/sentry_sdk/scope.py index 75fdb8077d..6df27c470f 100644 --- a/sentry_sdk/scope.py +++ b/sentry_sdk/scope.py @@ -1870,11 +1870,6 @@ def use_isolation_scope(isolation_scope: "Scope") -> "Generator[Scope, None, Non capture_internal_exception(sys.exc_info()) -def should_send_default_pii() -> bool: - """Shortcut for `Scope.get_client().should_send_default_pii()`.""" - return Scope.get_client().should_send_default_pii() - - # Circular imports from sentry_sdk.client import NonRecordingClient