diff --git a/src/includes/platforms/configuration/options/allow-urls.mdx b/src/includes/platforms/configuration/options/allow-urls.mdx new file mode 100644 index 0000000000000..7bcd4851d6781 --- /dev/null +++ b/src/includes/platforms/configuration/options/allow-urls.mdx @@ -0,0 +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. diff --git a/src/includes/platforms/configuration/options/deny-urls.mdx b/src/includes/platforms/configuration/options/deny-urls.mdx new file mode 100644 index 0000000000000..fe18418a4f494 --- /dev/null +++ b/src/includes/platforms/configuration/options/deny-urls.mdx @@ -0,0 +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. diff --git a/src/includes/platforms/configuration/options/ignore-errors.mdx b/src/includes/platforms/configuration/options/ignore-errors.mdx new file mode 100644 index 0000000000000..3fda1d5235939 --- /dev/null +++ b/src/includes/platforms/configuration/options/ignore-errors.mdx @@ -0,0 +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. diff --git a/src/includes/platforms/configuration/options/ignore-transactions.mdx b/src/includes/platforms/configuration/options/ignore-transactions.mdx new file mode 100644 index 0000000000000..d7e761f7e57b4 --- /dev/null +++ b/src/includes/platforms/configuration/options/ignore-transactions.mdx @@ -0,0 +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. diff --git a/src/platforms/common/configuration/options.mdx b/src/platforms/common/configuration/options.mdx index 300573db0f545..6914a4cf2d79a 100644 --- a/src/platforms/common/configuration/options.mdx +++ b/src/platforms/common/configuration/options.mdx @@ -282,25 +282,25 @@ For ASP.NET and ASP.NET Core applications, the value will default to the server' -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. + -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. + -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. + -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. + diff --git a/src/platforms/javascript/common/configuration/integrations/inboundfilters.mdx b/src/platforms/javascript/common/configuration/integrations/inboundfilters.mdx index 3bbe024d9298e..4d0d53660c335 100644 --- a/src/platforms/javascript/common/configuration/integrations/inboundfilters.mdx +++ b/src/platforms/javascript/common/configuration/integrations/inboundfilters.mdx @@ -13,5 +13,33 @@ message, or URLs in a given exception. By default, it'll ignore errors that start with `Script error` or `Javascript error: Script error`. To configure this integration, use the `ignoreErrors`, `ignoreTransactions`, `denyUrls`, -and `allowUrls` SDK options directly. Keep in mind that `denyURLs` and `allowURLs` -only work for captured exceptions not raw message events. +and `allowUrls` SDK options directly. For example: + +```javascript +Sentry.init({ + ignoreErrors: ["ignore-this-error"], +}); +``` + +## Options + + + Remember to pass these options to the root Sentry.init call, not the + integration! +{" "} + +- `ignoreErrors` (array) + + + +- `ignoreTransactions` (array) + + + +- `denyUrls` (array) + + + +- `allowUrls` (array) + +