Skip to content

Commit 158d628

Browse files
committed
add more details to inbound filters integration page.
1 parent 7468851 commit 158d628

File tree

6 files changed

+38
-6
lines changed

6 files changed

+38
-6
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A list of strings or regex patterns that match error URLs which should exclusively be sent to Sentry. If you use this option, only errors whose entire file URL contains (string) or matches (regex) at least one entry in the list will be sent. As a result, if you add `'foo.com'` to it, it will also match on `https://bar.com/myfile/foo.com`. Keep in mind that this only applies for captured exceptions, not raw message events. By default, all errors are sent.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A list of strings or regex patterns that match error URLs that should not be sent to Sentry. Errors whose entire file URL contains (string) or matches (regex) at least one entry in the list will not be sent. As a result, if you add `'foo.com'` to the list, it will also match on `https://bar.com/myfile/foo.com`. Keep in mind that this only applies for captured exceptions, not raw message events. By default, all errors are sent.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A list of strings or regex patterns that match error messages that shouldn't be sent to Sentry. Messages that match these strings or regular expressions will be filtered out before they're sent to Sentry. When using strings, partial matches will be filtered out, so if you need to filter by exact match, use regex patterns instead. By default, all errors are sent.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A list of strings or regex patterns that match transaction names that shouldn't be sent to Sentry. Transactions that match these strings or regular expressions will be filtered out before they're sent to Sentry. When using strings, partial matches will be filtered out, so if you need to filter by exact match, use regex patterns instead. By default, all transactions are sent.

src/platforms/common/configuration/options.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,25 +282,25 @@ For ASP.NET and ASP.NET Core applications, the value will default to the server'
282282

283283
<ConfigKey name="ignore-errors" supported={["javascript", "node"]} notSupported={[]}>
284284

285-
A list of strings or regex patterns that match error messages that shouldn't be sent to Sentry. Messages that match these strings or regular expressions will be filtered out before they're sent to Sentry. When using strings, partial matches will be filtered out, so if you need to filter by exact match, use regex patterns instead. By default, all errors are sent.
285+
<Include name="platforms/configuration/options/ignore-errors.mdx" />
286286

287287
</ConfigKey>
288288

289289
<ConfigKey name="ignore-transactions" supported={["javascript", "node"]} notSupported={[]}>
290290

291-
A list of strings or regex patterns that match transaction names that shouldn't be sent to Sentry. Transactions that match these strings or regular expressions will be filtered out before they're sent to Sentry. When using strings, partial matches will be filtered out, so if you need to filter by exact match, use regex patterns instead. By default, all transactions are sent.
291+
<Include name="platforms/configuration/options/ignore-transactions.mdx" />
292292

293293
</ConfigKey>
294294

295295
<ConfigKey name="deny-urls" supported={["javascript"]} notSupported={["node"]}>
296296

297-
A list of strings or regex patterns that match error URLs that should not be sent to Sentry. Errors whose entire file URL contains (string) or matches (regex) at least one entry in the list will not be sent. As a result, if you add `'foo.com'` to the list, it will also match on `https://bar.com/myfile/foo.com`. By default, all errors are sent.
297+
<Include name="platforms/configuration/options/deny-urls.mdx" />
298298

299299
</ConfigKey>
300300

301301
<ConfigKey name="allow-urls" supported={["javascript"]} notSupported={["node"]}>
302302

303-
A list of strings or regex patterns that match error URLs which should exclusively be sent to Sentry. If you use this option, only errors whose entire file URL contains (string) or matches (regex) at least one entry in the list will be sent. As a result, if you add `'foo.com'` to it, it will also match on `https://bar.com/myfile/foo.com`. By default, all errors are sent.
303+
<Include name="platforms/configuration/options/allow-urls.mdx" />
304304

305305
</ConfigKey>
306306

src/platforms/javascript/common/configuration/integrations/inboundfilters.mdx

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,33 @@ message, or URLs in a given exception.
1313
By default, it'll ignore errors that start with `Script error` or `Javascript error: Script error`.
1414

1515
To configure this integration, use the `ignoreErrors`, `ignoreTransactions`, `denyUrls`,
16-
and `allowUrls` SDK options directly. Keep in mind that `denyURLs` and `allowURLs`
17-
only work for captured exceptions not raw message events.
16+
and `allowUrls` SDK options directly. For example:
17+
18+
```javascript
19+
Sentry.init({
20+
ignoreErrors: ["ignore-this-error"],
21+
});
22+
```
23+
24+
## Options
25+
26+
<Note>
27+
Remember to pass these options to the root Sentry.init call, not the
28+
integration!
29+
</Note>{" "}
30+
31+
- `ignoreErrors` (array)
32+
33+
<Include name="platforms/configuration/options/ignore-errors.mdx" />
34+
35+
- `ignoreTransactions` (array)
36+
37+
<Include name="platforms/configuration/options/ignore-transactions.mdx" />
38+
39+
- `denyUrls` (array)
40+
41+
<Include name="platforms/configuration/options/deny-urls.mdx" />
42+
43+
- `allowUrls` (array)
44+
45+
<Include name="platforms/configuration/options/allow-urls.mdx" />

0 commit comments

Comments
 (0)