mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
set ‘www’ as tag, rather than environment
This commit is contained in:
parent
54f30fc944
commit
fbbf467878
2 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 =>
|
||||
|
|
Loading…
Reference in a new issue