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 =>