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

Version Path
scout_rails-1.1.5.pre6 lib/scout_rails/instruments/net_http.rb
scout_rails-1.1.5.pre5 lib/scout_rails/instruments/net_http.rb
scout_rails-1.1.5.pre4 lib/scout_rails/instruments/net_http.rb
scout_rails-1.1.5.pre3 lib/scout_rails/instruments/net_http.rb
scout_rails-1.1.5.pre lib/scout_rails/instruments/net_http.rb
scout_rails-1.1.4.pre lib/scout_rails/instruments/net_http.rb
scout_rails-1.1.3 lib/scout_rails/instruments/net_http.rb
scout_rails-1.1.2 lib/scout_rails/instruments/net_http.rb
scout_rails-1.1.1 lib/scout_rails/instruments/net_http.rb
scout_rails-1.1.1.pre lib/scout_rails/instruments/net_http.rb
scout_rails-1.1.0 lib/scout_rails/instruments/net_http.rb
scout_rails-1.0.9 lib/scout_rails/instruments/net_http.rb
scout_rails-1.0.8 lib/scout_rails/instruments/net_http.rb
scout_rails-1.0.8.pre.3 lib/scout_rails/instruments/net_http.rb
scout_rails-1.0.7 lib/scout_rails/instruments/net_http.rb
scout_rails-1.0.6 lib/scout_rails/instruments/net_http.rb
scout_rails-1.0.5 lib/scout_rails/instruments/net_http.rb
scout_rails-1.0.5.pre lib/scout_rails/instruments/net_http.rb
scout_rails-1.0.4 lib/scout_rails/instruments/net_http.rb
scout_rails-1.0.4.pre.2 lib/scout_rails/instruments/net_http.rb