Sha256: 96815446a80c9621e69db322ae56223185197c6d5cf45ac4e3592423356bb09f

Contents?: true

Size: 367 Bytes

Versions: 8

Compression:

Stored size: 367 Bytes

Contents

# frozen_string_literal: true

module Airbrake
  module Rails
    # Monkey-patch to measure request timing.
    # @api private
    # @since v11.0.2
    module HTTP
      def perform(request, options)
        Airbrake::Rack.capture_timing(:http) do
          super(request, options)
        end
      end
    end
  end
end

HTTP::Client.prepend(Airbrake::Rails::HTTP)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
airbrake-13.0.4 lib/airbrake/rails/http.rb
airbrake-13.0.3 lib/airbrake/rails/http.rb
airbrake-13.0.2 lib/airbrake/rails/http.rb
airbrake-13.0.1 lib/airbrake/rails/http.rb
airbrake-13.0.0 lib/airbrake/rails/http.rb
airbrake-12.0.0 lib/airbrake/rails/http.rb
airbrake-11.0.3 lib/airbrake/rails/http.rb
airbrake-11.0.2 lib/airbrake/rails/http.rb