Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Electron integration docs #1142

Merged
merged 3 commits into from
Nov 20, 2017
Merged

docs: Electron integration docs #1142

merged 3 commits into from
Nov 20, 2017

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