How to use the @sentry/electron.showReportDialog function in @sentry/electron

To help you get started, we’ve selected a few @sentry/electron examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MozillaSecurity / virgo / src / renderer / components / Error / ErrorBoundary.jsx View on Github external
sendReport = () => {
    const { error, errorInfo, eventId } = this.state
    if (!Environment.isTest) {
      /* Send the crash report to Sentry. */
      Sentry.withScope(scope => {
        scope.setExtra(errorInfo)
        this.setState({ eventId: Sentry.captureException(error) })
      })
      /* Collect user feedback as follow up. */
      Sentry.showReportDialog({ eventId })
    } else {
      logger.error(`Error: ${error}`)
      logger.error(`ErrorInfo: ${JSON.stringify(errorInfo)}`)
    }
  }
github InventivetalentDev / PluginBlueprint / pages / graph.html View on Github external
beforeSend(event) {
                        // Check if it is an exception, if so, show the report dialog
                        if (event.exception) {
                            Sentry.showReportDialog();
                        }
                        return event;
                    }
                });
github InventivetalentDev / PluginBlueprint / index.html View on Github external
beforeSend(event) {
                        // Check if it is an exception, if so, show the report dialog
                        if (event.exception) {
                            Sentry.showReportDialog();
                        }
                        return event;
                    }
                });