flamingo-sentry/index

sentry addon hooks
Source:

Methods

(inner) CONF() → {Object}

Returns default addon conf
Source:
Returns:
Type
Object

(inner) ensureLogMessage(obj) → {object}

Function to ensure that the the sentry `msg` field exists on the log object.
Parameters:
Name Type Description
obj object sentry log object
Source:
Returns:
obj input object
Type
object

(inner) ENV() → {Array}

Returns sentry environment mappings
Source:
Returns:
environment mappings
Type
Array
Example
`SENTRY_DSN` => `SENTRY_DSN`

(inner) LOG_STREAM(conf) → {Array.<BunyanStreamDefinition>}

Returns addon log streams builder function
Parameters:
Name Type Description
conf external:Config
Source:
See:
  • bunyan.docs
Returns:
bunyan stream definitions
Type
Array.<BunyanStreamDefinition>

Type Definitions

BunyanStreamDefinition

Result of input reading
Type:
  • Object
Properties:
Name Type Description
level number log level
stream Object object where write function sends incoming messages to sentry via raven
Source: