Module: Airbrake::Rails::NetHttp Private

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

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Monkey-patch Net::HTTP to benchmark it.

Since:

  • v10.0.2

Instance Method Summary collapse

Instance Method Details

#request(request, *args, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • v10.0.2



9
10
11
12
13
# File 'lib/airbrake/rails/net_http.rb', line 9

def request(request, *args, &block)
  Airbrake::Rack.capture_timing(:http) do
    super(request, *args, &block)
  end
end