octoblu-raven
Raven Error handling for Octoblu Services and workers.
Last updated 3 years ago by octoblu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install octoblu-raven 
SYNC missed versions from official npm registry.

node-octoblu-raven

Raven Error handling for Octoblu Services and Workers.

Build Status npm version Gitter

Installation

npm install --save octoblu-raven

Usage

Configuration Environment

Recommended:

env SENTRY_DSN='the-sentry-dsn'

Optional:

const options = {
  dsn: 'the-sentry-dsn',
  logFn: function() {}
}
new OctobluRaven(options)

NOTE: if no DSN is provided, it default to normal behavior and will not log with sentry

Express

!IMPORTANT: As of v4.0.0 use the new expressBundle method since it makes everyones life easier.

There is no longer a need for including express-send-error since that is included in the bundle.

For use with express apps.

express      = require 'express'
OctobluRaven = require 'octoblu-raven'
app          = express()

new OctobluRaven().handleExpress({ app })

Catch Uncaught Exceptions

Use at the root the project, typically in ./command.js. This can be used independently or with the use of the Express Middleware.

OctobluRaven = require 'octoblu-raven'
new OctobluRaven().patchGlobal()

Report Error, or Message

Use this to manually report an error or message to Sentry.

OctobluRaven = require 'octoblu-raven'
octobluRaven = new OctobluRaven()
octobluRaven.reportError(new Error('oh no'))

Current Tags

  • 6.0.2                                ...           latest (3 years ago)

23 Versions

  • 6.0.2                                ...           3 years ago
  • 6.0.1                                ...           3 years ago
  • 6.0.0                                ...           3 years ago
  • 5.0.0                                ...           4 years ago
  • 4.1.0                                ...           4 years ago
  • 4.0.3                                ...           4 years ago
  • 4.0.2                                ...           4 years ago
  • 4.0.1                                ...           4 years ago
  • 4.0.0                                ...           4 years ago
  • 3.2.0                                ...           4 years ago
  • 3.1.0                                ...           4 years ago
  • 3.0.5                                ...           4 years ago
  • 3.0.4                                ...           4 years ago
  • 3.0.3                                ...           4 years ago
  • 3.0.2                                ...           4 years ago
  • 3.0.1                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.1                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago

Copyright 2014 - 2017 © taobao.org |