1.1.1 • Published 6 years ago

@electron-boilerplate/sentry v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@electron-boilerplate/sentry

This library is primarily designed for use with electron-boilerplate and starts elctron-sentry in both the main and renderer processes.

Usage

npm install electron-boilerplate @electron-boilerplate/sentry

In your main process simply:

const { ElectronBoilerplate } = require('electron-boilerplate');
const { electronSentry } = require('@electron-boilerplate/sentry');

ElectronBoilerplate
  // This should come before 'standardConfiguration' or any other 'use' call
  // This will ensure that the crash reporters are started first
  .use(electronSentry(true))
  .standardConfiguration()
  .run();

electronSentry parameters

ParameterTypeDescriptionDefault
ignoreUserSettingbooleanIf this is true it will not check that ElectronSentry.isEnabled()false
dsnOrOptionsstring or ElectronSentryOptionsSentry non-public DSN string or options object. See electron-sentry for the full list of options and defaults. If nothing is supplied here, the sentry node from the root of the package.json is usedundefined