ngokevin / redux-raven-middleware

:bird: Redux middleware for sending error reports to Sentry through raven-js.
MIT License
227 stars 25 forks source link

redux-raven-middleware

Also check out Raven for Redux.

Redux middleware for sending error reports to Sentry through raven-js.

Will automatically send an error report upon encountering a Javascript error on dispatching any action. redux-raven-middleware will pass in the error as well as extra information such as the action that caused the error and the entire Redux application state.

RavenMiddleware(sentryDSN, sentryConfig, middlewareOptions)

Creates a Raven Middleware.

import {applyMiddleware, createStore} from 'redux';
import RavenMiddleware from 'redux-raven-middleware';

const createStoreWithMiddleware = applyMiddleware(
  RavenMiddleware('my-sentry-dsn')
)(createStore);