Module: Airbrake::Rails::CurlEasy

Defined in:
lib/airbrake/rails/curb.rb

Overview

Allows measuring request timing.

Instance Method Summary collapse

Instance Method Details

#http(verb) ⇒ Object



7
8
9
10
11
# File 'lib/airbrake/rails/curb.rb', line 7

def http(verb)
  Airbrake::Rack.capture_timing(:http) do
    super(verb)
  end
end

#perform(&block) ⇒ Object



13
14
15
16
17
# File 'lib/airbrake/rails/curb.rb', line 13

def perform(&block)
  Airbrake::Rack.capture_timing(:http) do
    super(&block)
  end
end