componentDidCatch(error, errorInfo) { this.setState({ error }); withScope(scope => { Object.keys(errorInfo).forEach(key => { scope.setExtra(key, errorInfo[key]); }); captureException(error); }); showReportDialog({ user: reportDialogUser, }); }
function init() { Sentry.init({ dsn: "https://ad544d85d8aa48bda02ceba801edaee7@sentry.io/1845961" }); }
function log(error) { Sentry.captureException(error); }