captbaritone / raven-for-redux

A Raven middleware for Redux
295 stars 25 forks source link

Is it possible to capture only certain errors? #80

Closed oliv9286 closed 6 years ago

oliv9286 commented 6 years ago

I was reading through the docs and saw the instruction asking to do Raven.install(). Some background context: my app is placed on a page that contains other projects as well, I don't want to use Raven.install() and all errors on the page, including the ones thrown from the other projects.

Ravenjs itself provides a way to

try {
... some piece of code
} catch(e) {
Raven.captureException(e)
}

Is this something that can be done using this middleware?

captbaritone commented 6 years ago

Yeah, if you just omit the "install" step, it should work just fine. Give it a try and let me know if it works.

captbaritone commented 6 years ago

I'm going to close this for now. Feel free to reply if this doesn't work for you.