Benjamin
Benjamin

Reputation: 1438

Customize Sentry alert content

Sentry allows to define alerts when issues reach certain thresholds. The alerts that are delivered per Mail look like

New alert from <project> in <environment>

<Issue>

Exception
<stacktrace>

<additional information e.g. contexts>

Tags
<tags>

Now the stacktrace may contain sensitive data (e.g. e-mail addresses) that I do not want to share via mail. How can I remove stacktrace and additional information from the alert mail?

Upvotes: 0

Views: 402

Answers (1)

Thomas Uchiha
Thomas Uchiha

Reputation: 308

Sentry calls it data scrubbing.

In your project's settings. Go to Security and Privacy, at the bottom of the page, you'll find Advanced Data Scrubbing. This is where you use can create rules that much your needs and will be removed/hashed/replaced/masked before the information gets to you. For more info : Advanced Data Scrubbing

Here's an example of a rule that removes the username of the user once an error occurs and the username of the user is part of the debugging file :

enter image description here

Upvotes: 1

Related Questions