Sha256: f60babafe434e9c0b46af64aeeee28d75239aabd377505e89013387f9e0dc006

Contents?: true

Size: 319 Bytes

Versions: 7

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true

# Monkey-patch to measure request timing.
class HTTPClient
  alias do_get_without_airbrake do_get_block

  def do_get_block(request, proxy, connection, &block)
    Airbrake::Rack.capture_timing(:http) do
      do_get_without_airbrake(request, proxy, connection, &block)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
airbrake-10.0.6 lib/airbrake/rails/http_client.rb
airbrake-10.1.0.rc.1 lib/airbrake/rails/http_client.rb
airbrake-10.0.5 lib/airbrake/rails/http_client.rb
airbrake-10.0.4 lib/airbrake/rails/http_client.rb
airbrake-10.0.3 lib/airbrake/rails/http_client.rb
airbrake-10.0.2 lib/airbrake/rails/http_client.rb
airbrake-10.0.1 lib/airbrake/rails/http_client.rb