module Kernel

def require(path)

def require(path)
  res = require_without_apm(path)
  begin
    ElasticAPM::Spies.hook_into(path)
  rescue ::Exception => e
    puts "Failed hooking into '#{path}'. Please report this at " \
      'github.com/elastic/apm-agent-ruby'
    puts e.backtrace.join("\n")
  end
  res
end