Sha256: d526617dd07085d79dc16ceac28f3e730c3bc6390f214477d3e1444f7f892f18
Contents?: true
Size: 522 Bytes
Versions: 28
Compression:
Stored size: 522 Bytes
Contents
if defined?(::Net) && defined?(Net::HTTP) ScoutRails::Agent.instance.logger.debug "Instrumenting Net::HTTP" Net::HTTP.class_eval do include ScoutRails::Tracer def request_with_scout_instruments(*args,&block) self.class.instrument("HTTP/request", :desc => "#{(@address+args.first.path.split('?').first)[0..99]}") do request_without_scout_instruments(*args,&block) end end alias request_without_scout_instruments request alias request request_with_scout_instruments end end
Version data entries
28 entries across 28 versions & 2 rubygems