class ElasticAPM::StacktraceBuilder

def library_frame?(config, abs_path)

def library_frame?(config, abs_path)
  return false unless abs_path
  return true if abs_path.start_with?(GEMS_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