How to use the @sentry/electron.captureEvent 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 davicorreiajr / spotify-now-playing / src / helpers / error-reporter.js View on Github external
exports.emit = function(errorMessageKey, error) {
  const event = {
    message: ERROR_MESSAGES[errorMessageKey] || errorMessageKey,
    extra: { error }
  };

  isProduction ? Sentry.captureEvent(event) : console.log(event);
};
github Jigsaw-Code / outline-client / src / www / app / electron_main.ts View on Github external
report(userFeedback: string, feedbackCategory: string, userEmail?: string): Promise {
    sentry.captureEvent(
        {message: userFeedback, user: {email: userEmail}, tags: {category: feedbackCategory}});
    return Promise.resolve();
  }
}