feat: Improved error filtering and reporting (#1293)

This commit is contained in:
Tom Moor
2020-05-29 07:22:09 -07:00
committed by GitHub
parent 1b25d12e2e
commit c929f83813
7 changed files with 59 additions and 6 deletions

View File

@ -93,6 +93,13 @@ if (process.env.SENTRY_DSN) {
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
maxBreadcrumbs: 0,
ignoreErrors: [
// emitted by Koa when bots attempt to snoop on paths such as wp-admin
// or the user submits a bad request. These are expected in normal running
// of the application
'BadRequestError',
'UnauthorizedError',
],
});
}