Skip to content

Commit 4ebb78d

Browse files
Remove PlatformSection component from Python docs (#8735)
1 parent 5b86a7a commit 4ebb78d

File tree

8 files changed

+42
-1447
lines changed

8 files changed

+42
-1447
lines changed
Lines changed: 2 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Filtering
3-
sidebar_order: 60
43
description: "Learn more about how to configure your SDK to filter events reported to Sentry."
4+
sidebar_order: 60
55
---
66

77
When you add Sentry to your app, you get a lot of valuable information about errors and performance. And lots of information is good -- as long as it's the right information, at a reasonable volume.
@@ -18,12 +18,10 @@ Configure your SDK to filter error events by using the <PlatformIdentifier name=
1818

1919
All Sentry SDKs support the <PlatformIdentifier name="before-send" /> callback method. Because it's called immediately before the event is sent to the server, this is your last chance to decide not to send data or to edit it. <PlatformIdentifier name="before-send" /> receives the event object as a parameter, which you can use to either modify the event’s data or drop it completely by returning `null`, based on custom logic and the data available on the event.
2020

21-
<PlatformContent includePath="configuration/before-send" />
21+
<PlatformContent includePath="configuration/before-send/" />
2222

2323
Note also that breadcrumbs can be filtered, as discussed in [our Breadcrumbs documentation](/product/error-monitoring/breadcrumbs/).
2424

25-
<PlatformSection notSupported={["apple", "dotnet", "elixir", "rust", "unreal", "kotlin-multiplatform"]}>
26-
2725
#### Event Hints
2826

2927
The <PlatformIdentifier name="before-send" /> callback is passed both the `event` and a second argument, `hint`, that holds one or more hints.
@@ -34,10 +32,6 @@ Typically a `hint` holds the original exception so that additional data can be e
3432

3533
When the SDK creates an event or breadcrumb for transmission, that transmission is typically created from some sort of source object. For instance, an error event is typically created from a log record or exception instance. For better customization, SDKs send these objects to certain callbacks (<PlatformIdentifier name="before-send" />, <PlatformIdentifier name="before-breadcrumb" /> or the event processor system in the SDK).
3634

37-
</PlatformSection>
38-
39-
<PlatformSection notSupported={["native", "apple", "dotnet", "unreal", "elixir", "kotlin-multiplatform"]}>
40-
4135
### Using Hints
4236

4337
Hints are available in two places:
@@ -71,36 +65,10 @@ In this example, the fingerprint is forced to a common value if an exception of
7165

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

74-
</PlatformSection>
75-
76-
<PlatformSection supported={["javascript", "node", "go"]} >
77-
78-
### Using <PlatformIdentifier name="ignore-errors" />
79-
80-
You can use the <PlatformIdentifier name="ignore-errors" /> option to filter out errors that match a certain pattern. This option receives a list of strings and regular expressions to match against the error message. When using strings, partial matches will be filtered out, so if you need to filter by exact match, use regex patterns instead.
81-
82-
<PlatformContent includePath="configuration/ignore-errors" />
83-
</PlatformSection>
84-
85-
<PlatformSection supported={["php"]} >
86-
87-
### Using <PlatformIdentifier name="ignore-exceptions" />
88-
89-
You can use the <PlatformIdentifier name="ignore-exceptions" /> option to filter out errors that match a type or subtype.
90-
91-
<PlatformContent includePath="configuration/ignore-exceptions" />
92-
</PlatformSection>
93-
94-
<PlatformSection supported={["android", "javascript", "java", "python"]} notSupported={["kotlin-multiplatform"]}>
95-
9668
### Decluttering Sentry
9769

9870
<PlatformContent includePath="configuration/decluttering" />
9971

100-
</PlatformSection>
101-
102-
<PlatformSection supported={["node", "javascript", "python", "php", "dotnet", "java", "ruby", "go", "react-native", "android", "dart"]} notSupported={["javascript.cordova", "unreal", "kotlin-multiplatform"]}>
103-
10472
## Filtering Transaction Events
10573

10674
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.
@@ -119,30 +87,6 @@ If the transaction currently being processed has a parent transaction (from an u
11987

12088
Learn more about <PlatformLink to="/configuration/sampling/">configuring the sample rate</PlatformLink>.
12189

122-
<PlatformSection supported={["node", "javascript", "php", "go", "python", "java", "ruby"]}>
123-
12490
### Using <PlatformIdentifier name="before-send-transaction" />
12591

12692
<PlatformContent includePath="configuration/before-send-transaction" />
127-
128-
</PlatformSection>
129-
130-
<PlatformSection supported={["javascript", "node", "go"]} >
131-
132-
### Using <PlatformIdentifier name="ignore-transactions" />
133-
134-
You can use the <PlatformIdentifier name="ignore-transactions" /> option to filter out transactions that match a certain pattern. This option receives a list of strings and regular expressions to match against the transaction name. When using strings, partial matches will be filtered out, so if you need to filter by exact match, use regex patterns instead.
135-
136-
<PlatformContent includePath="configuration/ignore-transactions" />
137-
</PlatformSection>
138-
139-
<PlatformSection supported={["php"]} >
140-
141-
### Using <PlatformIdentifier name="ignore-transactions" />
142-
143-
You can use the <PlatformIdentifier name="ignore-transactions" /> option to filter out transactions that match a certain string.
144-
145-
<PlatformContent includePath="configuration/ignore-transactions" />
146-
</PlatformSection>
147-
148-
</PlatformSection>

0 commit comments

Comments
 (0)