Sha256: c5d26a3af33d1a06007755d84373d995581513dbafacb12f04591ad81d0abe35

Contents?: true

Size: 273 Bytes

Versions: 17

Compression:

Stored size: 273 Bytes

Contents

# Monkey-patch Net::HTTP to benchmark it.
Net::HTTP.class_eval do
  alias_method :request_without_airbrake, :request

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
airbrake-10.0.0 lib/airbrake/rails/net_http.rb
airbrake-9.5.5 lib/airbrake/rails/net_http.rb
airbrake-9.5.4 lib/airbrake/rails/net_http.rb
airbrake-9.5.3 lib/airbrake/rails/net_http.rb
airbrake-9.5.2 lib/airbrake/rails/net_http.rb
airbrake-9.5.1 lib/airbrake/rails/net_http.rb
airbrake-9.5.0 lib/airbrake/rails/net_http.rb
airbrake-9.4.5 lib/airbrake/rails/net_http.rb
airbrake-9.4.4 lib/airbrake/rails/net_http.rb
airbrake-9.4.3 lib/airbrake/rails/net_http.rb
airbrake-9.4.2 lib/airbrake/rails/net_http.rb
airbrake-9.4.1 lib/airbrake/rails/net_http.rb
airbrake-9.4.0 lib/airbrake/rails/net_http.rb
airbrake-9.3.0 lib/airbrake/rails/net_http.rb
airbrake-9.2.2 lib/airbrake/rails/net_http.rb
airbrake-9.2.1 lib/airbrake/rails/net_http.rb
airbrake-9.2.0 lib/airbrake/rails/net_http.rb