Skip to content

Commit

Permalink
docs(js): Better InboundFilters options explanation (getsentry#1698)
Browse files Browse the repository at this point in the history
* docs(js): Better InboundFilters options explanation

* Update src/collections/_documentation/platforms/javascript/index.md

Co-authored-by: Tien "Mimi" Nguyen <[email protected]>

Co-authored-by: Tien "Mimi" Nguyen <[email protected]>
  • Loading branch information
kamilogorek and MimiDumpling authored May 21, 2020
1 parent 22b28e8 commit 84a370f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collections/_documentation/platforms/javascript/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ _Import name: `Sentry.Integrations.InboundFilters`_
This integration allows developers to ignore specific errors based on the type or message, as well as blacklist/whitelist URLs that originate from the exception.
It ignores errors, which message starts with `Script error` or `Javascript error: Script error` by default. More on this in our ["What the heck is "Script error"?"](https://blog.sentry.io/2016/05/17/what-is-script-error) blog post. Also, keep in mind that blacklist and whitelist work only for captured exceptions, not raw message events.

To configure it, use `ignoreErrors`, `blacklistUrls`, and `whitelistUrls` SDK options directly.
To configure the integration, use `ignoreErrors`, `blacklistUrls`, and `whitelistUrls` SDK options directly. All three options accept an array of strings or RegExp patterns. When provided with a string, they’ll partially match the URL in case of `backlistUrls` and `whitelistUrl`, or two variants in case of `ignoreErrors` - `message` itself, and `${type}: {message}` format. When given RegExp, it will use the `RegExp.test` method instead, which you can use to achieve an exact match if desired.

##### FunctionToString

Expand Down Expand Up @@ -1029,4 +1029,4 @@ To gain visibility into a JavaScript exception thrown from scripts originating f
## Additional Resources
- [Optimizing the Sentry Workflow](https://blog.sentry.io/2018/03/06/the-sentry-workflow)
- [Debug Tough Front-End Errors by Giving Sentry More Clues](https://blog.sentry.io/2019/01/17/debug-tough-front-end-errors-sentry-clues)
- [How Sentry Translates & Groups Localized Errors](https://blog.sentry.io/2018/02/28/internet-explorer-translations)
- [How Sentry Translates & Groups Localized Errors](https://blog.sentry.io/2018/02/28/internet-explorer-translations)

0 comments on commit 84a370f

Please sign in to comment.