Sentry-javascript: How can I cancel the automatic capture of ajax error?

Created on 16 Oct 2018  ·  2Comments  ·  Source: getsentry/sentry-javascript

Package + Version

  • [ ] @sentry/browser
  • [ ] @sentry/node
  • [x] raven-js
  • [ ] raven-node _(raven for node)_
  • [ ] other:

Version:

^3.27.0

Description

How can I cancel the automatic capture error of some kind of error ?
For example , 400 status code(because this kind of mistake is expected in my situation, I don't want it to appear in my Sentry Issues panel.)

Is there any way? thanks

Question

Most helpful comment

In old raven-js you can use dataCallback or ignoreErrors configs - https://docs.sentry.io/clients/javascript/config/
In new SDK, beforeSend - https://docs.sentry.io/learn/filtering/?platform=browser

All 2 comments

In old raven-js you can use dataCallback or ignoreErrors configs - https://docs.sentry.io/clients/javascript/config/
In new SDK, beforeSend - https://docs.sentry.io/learn/filtering/?platform=browser

@kamilogorek thank you

Was this page helpful?
0 / 5 - 0 ratings