Scrub user email from Django logs

We’re making an effort to rid our Django logs on Sentry from PII by scrubbing it serverside (as documented here:

Adding keys to the “Global sensitive fields” in our settings seems to have worked for the variables in the tracebacks. However, despite the sensitive fields including both “email”
and “Email”, the user’s email still appears in the “User” section of the event-page (see screenshot).


We had the same issue with the IP address, but adding “IP Address” to the list seems to have fixed this. Any idea on how to get rid of the email address as well? Note that the email is also shown in the “Events” tab.

All help appreciated!

You likely need to update the SDK to not send it, as we dont provide strong ways to say “im explicitly sending you this data but i want you to not store it”

1 Like