egg-sentry-zero

1.0.4 • Public • Published

egg-sentry-zero

NPM version build status Test coverage David deps Known Vulnerabilities npm download

npm

plugin name: egg-sentry-zero.
url: https://www.npmjs.com/package/egg-sentry-zero

github

Repositories: ZoneForZero/egg-sentry-zero.
url: https://github.com/ZoneForZero/egg-sentry-zero

Install

$ npm i egg-sentry-zero --save

Usage

// {app_root}/config/plugin.js
exports.sentry = {
  enable: true,
  package: 'egg-sentry-zero',
};

Configuration

// {app_root}/config/config.{env}.js
exports.sentry = {
  // Required.
  dsn: 'the unique key representing the project on Sentry!', 

  // Not required. Manually set environmental tags for error events
  environment: 'local', 

  // Not required. Default 'sentry'.The file name in the service layer of the function about error event. 
  // Representative => app.service.sentry.js
  sentryFileName: 'sentry' 
};

You can copy the 'app/service/default_sentry.js' to you project and rename to 'app/service/sentry.js',
then you can rewrite the function content.
see app/service/default_sentry.js for more detail about rewrite logic function content.

License

MIT

Package Sidebar

Install

npm i egg-sentry-zero

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

9.3 kB

Total Files

8

Last publish

Collaborators

  • zoneforzero