Adjusting Sentry integration to include extra info
This commit is contained in:
@@ -14,7 +14,11 @@ class SentryBoundary extends React.Component {
|
||||
}
|
||||
|
||||
componentDidCatch(error, errorInfo) {
|
||||
Sentry.captureException(error, errorInfo);
|
||||
Sentry.withScope(scope => {
|
||||
Object.keys(errorInfo).forEach(key =>
|
||||
scope.setExtra(key, errorInfo[key]));
|
||||
Sentry.captureException(error);
|
||||
});
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user