Modules: app/util/raven/middleware

Methods


createMiddleware(getRavenClient [, options])

Creates a middleware to save redux actions as raven breadcrumbs

Parameters:
Name Type Argument Description
getRavenClient function

Retrieve the raven client (that is saved at a later time)

options object <optional>

Customize extra data sent to sentry

Properties
Name Type Argument Description
actionTransformer function <optional>

Transform the action object to send; default to identity function

stateTransformer function <optional>

Transform the action state to send; default to identity function

logger function <optional>

The logger to use for logging; default to console.error

Source:
Returns:
Type
function

transformStateKeysToCapture(state)

Only copy the keys from the config over from the state

Parameters:
Name Type Description
state
Source: