Sha256: 50b8eab8b040021b6fdcad04e04f884c53e100390f1041f1b21ff040b4f7fa03

Contents?: true

Size: 258 Bytes

Versions: 7

Compression:

Stored size: 258 Bytes

Contents

# frozen_string_literal: true

module Typhoeus
  # Monkey-patch to measure request timing.
  class Request
    alias run_without_airbrake run

    def run
      Airbrake::Rack.capture_timing(:http) do
        run_without_airbrake
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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