Public: Instruments requests using Active Support.
Measures time spent only for synchronous requests.
Examples
ActiveSupport::Notifications.subscribe('request.faraday') do |name, starts, ends, _, env| url = env[:url] http_method = env[:method].to_s.upcase duration = ends - starts $stderr.puts '[%s] %s %s (%.3f s)' % [url.host, http_method, url.request_uri, duration] end
Generated with the Darkfish Rdoc Generator 2.