Created
November 23, 2018 12:41
-
-
Save mathieuletyrant/5f51cb82389c510b20e032255618b5af to your computer and use it in GitHub Desktop.
Sentry Middleware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sentryMiddleware = () => next => action => { | |
Sentry.addBreadcrumb({ | |
category: 'redux', | |
message: action.type, | |
level: 'info', | |
}) | |
return next(action) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment