Sentry: filter out useless events, tag ErrorBoundary page crashes
This commit is contained in:
@@ -56,7 +56,12 @@ class ErrorBoundary extends React.PureComponent<Props, State> {
|
||||
textarea: HTMLTextAreaElement | null = null;
|
||||
|
||||
componentDidCatch(error: any, info: any): void {
|
||||
captureException(error);
|
||||
captureException(error, {
|
||||
tags: {
|
||||
// Allow page crashes to be easily searched in Sentry.
|
||||
ErrorBoundary: 'yes',
|
||||
},
|
||||
});
|
||||
|
||||
this.setState({
|
||||
hasError: true,
|
||||
|
||||
Reference in New Issue
Block a user