Skip to content

Commit 8afeaee

Browse files
committed
feat: Send PII to Spotlight when no DSN is set
Quick fix for getsentry/spotlight#543 until we implement a global scrubber that only scrubs events sent to the clound thorugh the DSN.
1 parent 1bd744d commit 8afeaee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sentry_sdk/client.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,11 @@ def should_send_default_pii(self):
451451
452452
Returns whether the client should send default PII (Personally Identifiable Information) data to Sentry.
453453
"""
454-
return self.options.get("send_default_pii", False)
454+
result = self.options.get("send_default_pii")
455+
if result is None:
456+
result = not self.options["dsn"] and self.spotlight is not None
457+
458+
return result
455459

456460
@property
457461
def dsn(self):

0 commit comments

Comments
 (0)