We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 447dfa5 commit 0733150Copy full SHA for 0733150
lib/appoptics_apm/api/util.rb
@@ -45,7 +45,7 @@ def trim_backtrace(backtrace)
45
return backtrace unless backtrace.is_a?(Array) && backtrace.size > BACKTRACE_CUTOFF
46
47
# Trim backtraces by getting the first 180 and last 20 lines
48
- backtrace[0, 180] + ['...[snip]...'] + backtrace[length - 20, 20]
+ backtrace[0, 180] + ['...[snip]...'] + backtrace[backtrace.size - 20, 20]
49
end
50
51
# Internal: Check if a host is blacklisted from tracing
0 commit comments