Skip to content

Commit

Permalink
feat: Send PII to Spotlight when no DSN is set
Browse files Browse the repository at this point in the history
Quick fix for getsentry/spotlight#543 until we implement a global scrubber that only scrubs events sent to the clound thorugh the DSN.
  • Loading branch information
BYK committed Nov 19, 2024
1 parent 1bd744d commit 8afeaee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sentry_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,11 @@ def should_send_default_pii(self):
Returns whether the client should send default PII (Personally Identifiable Information) data to Sentry.
"""
return self.options.get("send_default_pii", False)
result = self.options.get("send_default_pii")
if result is None:
result = not self.options["dsn"] and self.spotlight is not None

return result

@property
def dsn(self):
Expand Down

0 comments on commit 8afeaee

Please sign in to comment.