Sha256: 1006122e01524667729a0c5e4a7ed59b9981cc2653244b2b5d485b6d3e0efa11

Contents?: true

Size: 305 Bytes

Versions: 9

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true

module HTTP
  # Monkey-patch to measure request timing.
  class Client
    alias perform_without_airbrake perform

    def perform(request, options)
      Airbrake::Rack.capture_timing(:http) do
        perform_without_airbrake(request, options)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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