6.0.2 • Published 9 years ago

octoblu-raven v6.0.2

Weekly downloads
30
License
MIT
Repository
github
Last release
9 years ago

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'))
6.0.2

9 years ago

6.0.1

9 years ago

6.0.0

9 years ago

5.0.0

9 years ago

4.1.0

9 years ago

4.0.3

10 years ago

4.0.2

10 years ago

4.0.1

10 years ago

4.0.0

10 years ago

3.2.0

10 years ago

3.1.0

10 years ago

3.0.5

10 years ago

3.0.4

10 years ago

3.0.3

10 years ago

3.0.2

10 years ago

3.0.1

10 years ago

3.0.0

10 years ago

2.2.0

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.0

10 years ago