captbaritone / raven-for-redux

A Raven middleware for Redux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to capture only certain errors?

oliv9286 opened this issue · comments

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?

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

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