class ElasticAPM::StacktraceBuilder

def library_frame?(config, abs_path)

def library_frame?(config, abs_path)
  return false unless abs_path
  if abs_path.start_with?(config.root_path)
    return true if abs_path.start_with?(config.root_path + '/vendor')
    return false
  end
  return true if abs_path.match(RUBY_VERS_REGEX)
  return true if abs_path.match(JRUBY_ORG_REGEX)
  false
end