Skip to content

Commit 6e400cc

Browse files
Add docs for include_source_context in Python (#6931)
--------- Co-authored-by: Shana Matthews <[email protected]>
1 parent c5c5b63 commit 6e400cc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/platforms/python/common/data-collected.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ The request body of incoming HTTP requests can be sent to Sentry. Whether it's s
5252

5353
If you want to prevent bodies from being sent to Sentry altogether, set `request_bodies` to `"never"`.
5454

55+
## Source Context
56+
57+
When an unhandled exception is sent to Sentry, a snapshot of the source code surrounding the line where the error originates is sent with it.
58+
59+
To opt out of sending this source context to Sentry, set `include_source_context` to `False`.
60+
5561
## Local Variables In Stack Trace
5662

5763
When unhandled errors and exceptions are sent to Sentry, the names and values of local variables that were set when the errors occurred, are sent at the same time.

0 commit comments

Comments
 (0)