Skip to content

Commit e69ca9a

Browse files
committed
Added some todos
1 parent 8ae7d34 commit e69ca9a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sentry_sdk/utils.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,14 @@ def event_from_exception(
11611161
# type: (...) -> Tuple[Event, Dict[str, Any]]
11621162
exc_info = exc_info_from_error(exc_info)
11631163
hint = event_hint_with_exc_info(exc_info)
1164+
# TODO: do not use extract_stack() but get the real stack frames (instead of summaries with extract_stack)
1165+
# to get all the information about the frames
11641166
full_stack = traceback.extract_stack()
1167+
1168+
# TODO: add an option "add_full_stack" to the client options to add the full stack to the event (defaults to True)
1169+
1170+
# TODO: add an option "max_stack_frames" to the client options to limit the number of stack frames (defaults to 50?)
1171+
11651172
return (
11661173
{
11671174
"level": "error",

0 commit comments

Comments
 (0)