lib/excon/middlewares/instrumentor.rb in excon-0.62.0 vs lib/excon/middlewares/instrumentor.rb in excon-0.63.0

- old
+ new

@@ -1,8 +1,16 @@ # frozen_string_literal: true module Excon module Middleware class Instrumentor < Excon::Middleware::Base + def self.valid_parameter_keys + [ + :logger, + :instrumentor, + :instrumentor_name + ] + end + def error_call(datum) if datum.has_key?(:instrumentor) datum[:instrumentor].instrument("#{datum[:instrumentor_name]}.error", :error => datum[:error]) do @stack.error_call(datum) end