Sentry Data Handling
Prerequisites
-
Sentry project with admin access
-
Compliance requirements documented (GDPR, HIPAA, PCI-DSS)
-
List of sensitive data patterns to scrub
-
Understanding of data retention requirements
Instructions
-
Enable server-side data scrubbing in Project Settings > Security & Privacy
-
Configure client-side scrubbing in beforeSend hook for PII fields
-
Add custom scrubbing rules for credit cards, SSNs, and email patterns
-
Disable sendDefaultPii in SDK configuration
-
Configure IP address anonymization or disable IP collection
-
Set appropriate data retention period in organization settings
-
Implement user consent handling for GDPR compliance
-
Document right to erasure process with API deletion endpoint
-
Run tests to verify sensitive data is properly scrubbed
-
Complete compliance checklist for applicable regulations
Output
-
PII scrubbing rules configured
-
GDPR compliance documentation
-
Data retention policies implemented
-
User consent handling code
Error Handling
See ${CLAUDE_SKILL_DIR}/references/errors.md for comprehensive error handling.
Examples
See ${CLAUDE_SKILL_DIR}/references/examples.md for detailed examples.
Resources
-
Sentry Data Privacy
-
GDPR Compliance
-
Data Scrubbing
Overview
Manage sensitive data properly in Sentry.