Add a way to specify where the max backtrace frames are truncated #3011
Labels
community
To tag external issues and PRs submitted by the community
feature request
To tag feature request after Hero Triage for PM to disposition
Is your feature request related to a problem? Please describe.
Per the docs on
error_collector.max_backtrace_frames
:In my experience, backtraces for rails have the most info for specifics at the begging and middle and not towards the end (that is usually rails callers and the such). This means I typically have to increase the size of the backtrace from the default
50
to something like100
or200
to make sure I'm getting the "guts" of the error message.Feature Description
I would like to request a setting that will allow us to set where the backtrace frames are truncated.
Something like:
error_collector.max_backtrace_frames_truncate_location
orerror_collector.backtrace_truncate_location
(or something along those lines) with a default ofmiddle
(to keep current behavior) and the options oftop
/start
,middle
, andend
.Then if someone were to put
end
as an option, the ending lines of the stack trace would be removed instead of the middle.Describe Alternatives
The only alternative I can think of is to add a larger amount to the stack tract to get more details.
ending stack trace to an old system
These ending lines don't really add much to the stack trace to track down the bug/error.
Additional context
This might be helpful to others (not sure?), but I feel like I would utilize it. Maybe I'm missing a configuration setting or didn't know about a setting that would work instead of adding this feature to save everyone time.
Priority
Nice to Have
The text was updated successfully, but these errors were encountered: