Skip to content

Commit 9fb6eb7

Browse files
committed
Revert filter updates
1 parent e3cc2fe commit 9fb6eb7

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

src/platforms/common/configuration/filtering.mdx

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ All Sentry SDKs support the <PlatformIdentifier name="before-send" /> callback m
2222

2323
<PlatformContent includePath="configuration/before-send" />
2424

25+
<PlatformContent includePath="configuration/before-send-transaction" />
26+
2527
Note also that breadcrumbs can be filtered, as discussed in [our Breadcrumbs documentation](/product/error-monitoring/breadcrumbs/).
2628

2729
<PlatformSection notSupported={["apple", "dotnet"]}>
@@ -83,28 +85,16 @@ In this example, the fingerprint is forced to a common value if an exception of
8385

8486
<PlatformSection supported={["node", "javascript", "python", "php", "dotnet", "java", "ruby", "go", "react-native", "android", "dart"]} notSupported={["javascript.cordova"]}>
8587

86-
## Filtering Transaction Events
87-
88-
To prevent certain transactions from being reported to Sentry, use the <PlatformIdentifier name="traces-sampler" /> or <PlatformIdentifier name="before-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.
88+
## Using Sampling to Filter Transaction Events
8989

90-
### Using <PlatformIdentifier name="traces-sampler" />
90+
To prevent certain transactions from being reported to Sentry, use the <PlatformIdentifier name="traces-sampler" /> configuration option, which allows you to provide a function to evaluate the current transaction and drop it if it's not one you want. (It also allows you to sample different transactions at different rates.)
9191

9292
**Note:** The <PlatformIdentifier name="traces-sampler" /> and <PlatformIdentifier name="traces-sample-rate" /> config options are mutually exclusive. If you define a <PlatformIdentifier name="traces-sampler" /> to filter out certain transactions, you must also handle the case of non-filtered transactions by returning the rate at which you'd like them sampled.
9393

9494
In its simplest form, used just for filtering the transaction, it looks like this:
9595

9696
<PlatformContent includePath="performance/traces-sampler-as-filter" />
9797

98-
It also allows you to sample different transactions at different rates.
99-
10098
Learn more about <PlatformLink to="/configuration/sampling/">configuring the sample rate</PlatformLink>.
10199

102-
<PlatformSection supported={["node", "javascript", "php"]} notSupported={["php.symfony"]}>
103-
104-
### Using <PlatformIdentifier name="before-transaction" />
105-
106-
<PlatformContent includePath="configuration/before-send-transaction" />
107-
108100
</PlatformSection>
109-
110-
</PlatformSection>

0 commit comments

Comments
 (0)