Skip to content

Commit

Permalink
moved allowUrls and denyUrls from dart to flutter
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhaintz committed Aug 13, 2024
1 parent f9955d3 commit 9f37527
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
22 changes: 0 additions & 22 deletions docs/platforms/dart/configuration/filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,28 +65,6 @@ When a string or a non-error object is raised, Sentry creates a synthetic except

<PlatformContent includePath="configuration/breadcrumb-hints" />

#### Using `allowUrls` (Web only)

Based on the URL, you can narrow down whether events should be sent to Sentry.
Using `allowUrls`, events are only sent if the URL matches the pattern specified in `allowUrls`.
`allowUrls` also accepts regular expression by adding the `^` and the `$` to the string.

If used on a platform other than Web, this setting will be ignored.

<PlatformContent includePath="configuration/allow-urls" />

#### Using `denyUrls` (Web only)

You can exclude events sent to Sentry based on the URL.
Using `denyUrls`, events are ignored if the URL matches the pattern specified in `denyUrls`.
`denyUrls` also accepts regular expression by adding the `^` and the `$` to the string.

In combination with `allowUrls` you can block subdomains of the domains listed in `allowUrls`.

If used on a platform other than Web, this setting will be ignored.

<PlatformContent includePath="configuration/deny-urls" />

## Filtering Transaction Events

To prevent certain transactions from being reported to Sentry, use the <PlatformIdentifier name="traces-sampler" /> or <PlatformIdentifier name="before-send-transaction" /> configuration option, which allows you to provide a function to evaluate the current transaction and drop it if it's not one you want.
Expand Down
22 changes: 22 additions & 0 deletions docs/platforms/flutter/configuration/filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,28 @@ When a string or a non-error object is raised, Sentry creates a synthetic except

<PlatformContent includePath="configuration/breadcrumb-hints" />

#### Using `allowUrls` (Web only)

Based on the URL, you can narrow down whether events should be sent to Sentry.
Using `allowUrls`, events are only sent if the URL matches the pattern specified in `allowUrls`.
`allowUrls` also accepts regular expression by adding the `^` and the `$` to the string.

If used on a platform other than Web, this setting will be ignored.

<PlatformContent includePath="configuration/allow-urls" />

#### Using `denyUrls` (Web only)

You can exclude events sent to Sentry based on the URL.
Using `denyUrls`, events are ignored if the URL matches the pattern specified in `denyUrls`.
`denyUrls` also accepts regular expression by adding the `^` and the `$` to the string.

In combination with `allowUrls` you can block subdomains of the domains listed in `allowUrls`.

If used on a platform other than Web, this setting will be ignored.

<PlatformContent includePath="configuration/deny-urls" />

## Filtering Transaction Events

To prevent certain transactions from being reported to Sentry, use the <PlatformIdentifier name="traces-sampler" /> or <PlatformIdentifier name="before-send-transaction" /> configuration option, which allows you to provide a function to evaluate the current transaction and drop it if it's not one you want.
Expand Down

0 comments on commit 9f37527

Please sign in to comment.