Skip to content

Conversation

kamilogorek
Copy link
Contributor

It's something... :shipit:

image

@kamilogorek kamilogorek requested a review from a team November 17, 2017 14:03
Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! What would be great is to suggest adding tags for the Electron version and OS platform to the events. I was thinking of:

Raven.config('___PUBLIC_DSN___', {
  captureUnhandledRejections: true,
  tags: {
    electron: process.versions.electron,
    chrome: process.versions.chrome,
    process: process.versions.type,
    platform: process.platform  // if not sent by raven
  }
}).install()

Other than that, just one minor wording suggestion.

Raven.captureException(event.reason);
});

This configuration will also handle promises errors, which be handled in various way, however, by default Electron uses standard JS API.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"will also handle Promise errors" or "unhandled Promise rejections"

@kamilogorek kamilogorek merged commit f9ac32a into master Nov 20, 2017
@kamilogorek kamilogorek deleted the electron-docs branch November 20, 2017 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants