getsentry / raven-python

Raven is the legacy Python client for Sentry (getsentry.com) — replaced by sentry-python
https://sentry.io
BSD 3-Clause "New" or "Revised" License
1.68k stars 657 forks source link

Useful local variables in *stack* frames are removed #1270

Open tahajahangir opened 6 years ago

tahajahangir commented 6 years ago

When using auto_log_stacks=True, frames are pruned by slim_frame_data and only local-variables of top/bottom 12 frames are kept. This is because in_app are not calculated for stack frames and include_paths are ignored.

When using auto_log_stacks bottom frames are usually in raven or logging package, and top frames are usually framework frames (like uwsgi or django), and this results in loss of useful information.

Also it's a good idea to add configuration to change the frame_allowance, this is hard-coded to 25 in the code and is not configurable.