8000 Add filter order · getsentry/develop@d96c3f1 · GitHub 8000
[go: up one dir, main page]

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

Commit d96c3f1

Browse files
authored
Add filter order
Python now serves as reference implementations. We've recently changed the order there, see getsentry/sentry-python#1394 and getsentry/sentry-python#1390
1 parent fe59475 commit d96c3f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/docs/sdk/sessions.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,3 +509,13 @@ Provide an easy way to integrate with existing Node frameworks (Express, Next.js
509509
### Session update filtering
510510

511511
Events may be dropped by our filtering mechanisms (sample rate, beforeSend, event processors or ignored exception types). Only events dropped due to sampling should update the session despite being dropped as we assume the event was dropped to save quota but would have been something the developer cares about. Events dropped due to other reasons should not update the session as we assume they are more likely to be dropped because the developer chooses to ignore them.
512+
513+
#### Filter order
514+
515+
The python SDK shall serve as a reference here. The order for filtering error events is:
516+
1. Check for ignored exception types (a.k.a `ignore_errors`)
517+
3. Apply scoped `event_processor` (a.k.a `error_processor`)
518+
4. Apply global `event_processor`
519+
2. Apply `before_send`
520+
5. Update the session if an event made it this far
521+
6. Apply sampling rate

0 commit comments

Comments
 (0)
0