From fbbf4678786b05e9b8a659c8304b66040383ce5a Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Wed, 9 Oct 2019 22:48:11 -0400 Subject: [PATCH] =?UTF-8?q?set=20=E2=80=98www=E2=80=99=20as=20tag,=20rathe?= =?UTF-8?q?r=20than=20environment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/errorboundary/errorboundary.jsx | 1 + src/lib/sentry.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/errorboundary/errorboundary.jsx b/src/components/errorboundary/errorboundary.jsx index 22cc94351..aa86631f6 100644 --- a/src/components/errorboundary/errorboundary.jsx +++ b/src/components/errorboundary/errorboundary.jsx @@ -17,6 +17,7 @@ class ErrorBoundary extends React.Component { componentDidCatch (error, errorInfo) { // Display fallback UI Sentry.withScope(scope => { + scope.setTag('project', 'www'); if (this.props.name) { scope.setTag('errorboundary', this.props.name); } diff --git a/src/lib/sentry.js b/src/lib/sentry.js index 1afdb53a4..b16cd03a9 100644 --- a/src/lib/sentry.js +++ b/src/lib/sentry.js @@ -5,7 +5,6 @@ const initSentry = () => { Sentry.init({ dsn: `${process.env.SENTRY_DSN}`, - environment: 'www', // Do not collect global onerror, only collect specifically from React error boundaries. // TryCatch plugin also includes errors from setTimeouts (i.e. the VM) integrations: integrations => integrations.filter(i =>