vendor/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.4.245/lib/new_relic/collection_helper.rb
# Return an array of strings (backtrace), cleaned up for readability
# Return nil if there is no backtrace
Return an array of strings (backtrace), cleaned up for readability
Return nil if there is no backtrace
Return an array of strings ( backtrace ) cleaned up for readability Return nil if there is no backtrace
def strip_nr_from_backtrace(backtrace)
    if backtrace && !Agent.config[:disable_backtrace_cleanup]
      backtrace = backtrace.split("\n") if String === backtrace
      backtrace = backtrace.map(&:to_s)
      backtrace = backtrace.reject do |line|
        line.include?(NewRelic::Control.newrelic_root) or
        line =~ /^newrelic_rpm\s/
      end
      backtrace = backtrace.collect {|line| line.gsub(/_without_(newrelic|trace)/, "")}
    end
    backtrace
  end
def strip_nr_from_backtrace ( backtrace ) if backtrace && ! Agent . config [ :disable_backtrace_cleanup ] backtrace = backtrace . split ( "\n" ) if String === backtrace backtrace = backtrace . map ( & :to_s ) backtrace = backtrace . reject do | line | line . include? ( NewRelic :: Control . newrelic_root ) or line =~ / ^newrelic_rpm \s / end backtrace = backtrace . collect { | line | line . gsub ( / _without_(newrelic|trace) / , "" ) } end backtrace end
Return an array of strings (backtrace), cleaned up for readability
Return nil if there is no backtrace
Return an array of strings ( backtrace ) cleaned up for readability Return nil if there is no backtrace
# this is for 1.9.1, where strings no longer have Enumerable # rename methods back to their original state
backtrace