sentry-hapi

1.0.4 • Public • Published

Sentry-hapi plugin

1. Install the plugin

npm install sentry-hapi

2. create an environment variable called SENTRY_DSN

SENTRY_DSN=https://fake@sentry.yourdomain/

3. create an environment variable called ENV

ENV=production

4. Include the plugin in your Hapi project

await server.register({ plugin: require('sentry-hapi') });

5. Configure options

you can configure custom options of this plugin

Name Type Default Description
report404 Boolean true send report of 404 happening

6. Enjoy debugging your application

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    45
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    45
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i sentry-hapi

Weekly Downloads

45

Version

1.0.4

License

MIT

Unpacked Size

2.5 kB

Total Files

3

Last publish

Collaborators

  • capaio