Skip to content

Commit 217b4d3

Browse files
antonpirkerlizokm
andauthored
Added new options to control what frames to add to the stack trace (#11844)
Documentation of two new options that where introduced here: getsentry/sentry-python#3673 --------- Co-authored-by: Liza Mock <[email protected]>
1 parent 310124b commit 217b4d3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/platforms/python/configuration/options.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,18 @@ This option is on by default.
131131

132132
</ConfigKey>
133133

134+
<ConfigKey name="add-full-stack">
135+
136+
When capturing errors, Sentry stack traces typically only include frames that start the moment an error occurs. But if the "add-full-stack" option is enabled (set to `True`), all frames from the start of execution will be included in the stack trace sent to Sentry. By default, this option is set to `False`.
137+
138+
</ConfigKey>
139+
140+
<ConfigKey name="max-stack-frames">
141+
142+
This option limits the number of stack frames that will be captured when `add_full_stack` is enabled. The default value is `100`.
143+
144+
</ConfigKey>
145+
134146
<ConfigKey name="server-name">
135147

136148
This option can be used to supply a "server name." When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.

0 commit comments

Comments
 (0)