Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions config/initializers/new_relic.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# monkeypatch to prevent new relic from truncating backtraces. length is not configurable
# monkeypatch to prevent new relic from truncating backtraces.
# stack length is not currently configurable in new relic.
# The MAX_BACKTRACE_FRAMES constant is commented out for reference

module NewRelic
module Agent
class ErrorCollector
# Maximum number of frames in backtraces. May be made configurable
# in the future.
MAX_BACKTRACE_FRAMES = 50
def truncate_trace(trace, _keep_frames = MAX_BACKTRACE_FRAMES)
# MAX_BACKTRACE_FRAMES = 50
def truncate_trace(trace, _keep_frames = nil)
trace
end
end
Expand Down