We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e998027 commit 7503a37Copy full SHA for 7503a37
docs/platforms/python/configuration/filtering/index.mdx
@@ -30,7 +30,7 @@ Suppose that you wish prevent all errors of type `ZeroDivisionError` from being
30
import sentry_sdk
31
from sentry_sdk.types import Event, Hint
32
33
-def my_before_send(event: Event, hint: Hint) -> Event:
+def my_before_send(event: Event, hint: Hint) -> Event | None:
34
# Filter out all ZeroDivisionError events.
35
# Note that the exception type is available in the hint,
36
# but we should handle the case where the exception info
0 commit comments