Sha256: 980cbd536fab9f345f4b1f043733e5705285faca0020f658a5c41346ba2f9138
Contents?: true
Size: 741 Bytes
Versions: 10
Compression:
Stored size: 741 Bytes
Contents
# frozen_string_literal: true module Airbrake module Rails # Allows measuring request timing. module CurlEasy def http(verb) Airbrake::Rack.capture_timing(:http) do super(verb) end end def perform(&block) Airbrake::Rack.capture_timing(:http) do super(&block) end end end # Allows measuring request timing. module CurlMulti def http(urls_with_config, multi_options = {}, &block) Airbrake::Rack.capture_timing(:http) do super(urls_with_config, multi_options, &block) end end end end end Curl::Easy.prepend(Airbrake::Rails::CurlEasy) Curl::Multi.singleton_class.prepend(Airbrake::Rails::CurlMulti)
Version data entries
10 entries across 10 versions & 1 rubygems