Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit 97287d1

Browse files
Define ignore_errors & ignore_transactions (#884)
* ignore_errors & ignore_transactions * Update src/docs/sdk/features.mdx Co-authored-by: Philipp Hofmann <[email protected]> * clarify that transaction name should be included --------- Co-authored-by: Philipp Hofmann <[email protected]>
1 parent 924c0b9 commit 97287d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/docs/sdk/features.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ if random() < sample_rate:
5555
transport.capture_event(event)
5656
```
5757

58+
To further simplfiy ignoring certain events from being sent to sentry, it is also suggested to provide `ignoreTransactions` and `ignoreErrors` (or exception, choose terminology which is best for the platform). The array for `ignoreTransactions` specifically should contain an array of transaction names, as is stored in the transcation event schema (ie `GET /info`). These options should provide a simple way to allow users to discard events (ignore) from before they are sent to sentry. Prevents sending data which is is undesired and may consume quota or resources on the Sentry server.
59+
60+
```python
61+
ignore_transactions = ['GET /api/health','/api/v1/*']
62+
```
63+
5864
## Rate Limiting
5965

6066
Respect Sentry’s HTTP 429 `Retry-After` header, or, if the SDK supports multiple payload types (e.g. errors and transactions), the `X-Sentry-Rate-Limits` header. Outgoing SDK requests should be dropped during the backoff period.

0 commit comments

Comments
 (0)