Skip to content

Commit dacf3a8

Browse files
committed
Added new options to control what frames to add to the stack trace
1 parent 5bd251a commit dacf3a8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/platforms/python/configuration/options.mdx

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

132132
</ConfigKey>
133133

134+
<ConfigKey name="add-full-stack">
135+
136+
When capturing errors, the Sentry stack traces only contain the frames from when an error happens. If this option is enabled (set to `True`) all frames from the beginning of the execution will be added to the stack trace sent to Sentry.
137+
138+
Default value is `False`.
139+
140+
</ConfigKey>
141+
142+
<ConfigKey name="max-stack-frames">
143+
144+
This option limits the number of stack frames that will be captured. Limiting is only applied if `add_full_stack` is enabled.
145+
146+
Default value is `100`.
147+
148+
</ConfigKey>
149+
134150
<ConfigKey name="server-name">
135151

136152
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)