Skip to content

Commit 185a6bc

Browse files
authored
feat(python): Add a note about the Event and Hint types (#12979)
1 parent 99d3119 commit 185a6bc

File tree

1 file changed

+1
-1
lines changed
  • docs/platforms/python/configuration/filtering

1 file changed

+1
-1
lines changed

docs/platforms/python/configuration/filtering/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Configure your SDK to filter error events by using the <PlatformIdentifier name=
1818

1919
The `before_send` callback allows you to modify the event payload before the SDK sends the event to Sentry. You can also stop the event from being sent by returning `None`.
2020

21-
The callback receives two arguments: the event payload and a [hint](#event-hints). The callback can return either the event payload to send to Sentry or `None` if the event should be dropped.
21+
The callback receives two arguments: the event payload and a [hint](#event-hints). The corresponding `Event` and `Hint` types can be imported from `sentry_sdk.types` for better introspection into what fields are available. The callback can return either the event payload to send to Sentry or `None` if the event should be dropped.
2222

2323
Any modifications to the event payload done in the callback, including adding data to the event and modifying or deleting existing event fields, will be reflected in Sentry.
2424

0 commit comments

Comments
 (0)