Skip to content

Commit d1f0a82

Browse files
committed
Add docs for include_source_context
1 parent 34b095f commit d1f0a82

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 place where the error originates is sent with it.
58+
59+
To opt out of sending 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)