chore: Update Sentry to avoid duplicate packages

chore: Pass current release version to Sentry and Datadog
This commit is contained in:
Tom Moor
2021-02-12 16:39:02 -08:00
parent 41df5c74be
commit 2a225d81d2
6 changed files with 82 additions and 123 deletions

View File

@@ -114,10 +114,11 @@ if (isProduction) {
// catch errors in one place, automatically set status and response headers
onerror(app);
if (process.env.SENTRY_DSN) {
if (env.SENTRY_DSN) {
Sentry.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
dsn: env.SENTRY_DSN,
environment: env.ENVIRONMENT,
release: env.RELEASE,
maxBreadcrumbs: 0,
ignoreErrors: [
// emitted by Koa when bots attempt to snoop on paths such as wp-admin