set ‘www’ as tag, rather than environment

This commit is contained in:
Ben Wheeler 2019-10-09 22:48:11 -04:00
parent 54f30fc944
commit fbbf467878
2 changed files with 1 additions and 1 deletions

View file

@ -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);
}

View file

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