hapi-raygun
A Hapi.js plugin for reporting server-side errors to Raygun.
Usage
var Hapi = ;var Raygun = ; var server = ; server;
Configuration
options
apiKey
- String. Your Raygun API key. If not set, no error handler will be registered and plugin will be a no-op.filters
- Array, default["password"]
. Array of strings to filter from payload sent to Raygun (see this for example)log
- Boolean, defaultfalse
. Iftrue
, usesserver.log()
to log when plugin logs calls to Raygun. Depends on logging to be setup properly, i.e. use good and good-console configured to log server log events.user
- Function. Takes a callback accepting a single argument and returning the request's user context. See Raygun documentation for user callbackversion
- String. Format of "n.n.n.n" wheren
is a number. See raygun docs