lib/elastic_apm/spies/faraday.rb in elastic-apm-2.5.0 vs lib/elastic_apm/spies/faraday.rb in elastic-apm-2.6.0

- old
+ new

@@ -4,10 +4,12 @@ # @api private module Spies # @api private class FaradaySpy # rubocop:disable Metrics/MethodLength, Metrics/AbcSize + # rubocop:disable Metrics/BlockLength, Metrics/PerceivedComplexity + # rubocop:disable Metrics/CyclomaticComplexity def install ::Faraday::Connection.class_eval do alias run_request_without_apm run_request def run_request(method, url, body, headers, &block) @@ -41,9 +43,11 @@ end end end end end + # rubocop:enable Metrics/CyclomaticComplexity + # rubocop:enable Metrics/BlockLength, Metrics/PerceivedComplexity # rubocop:enable Metrics/MethodLength, Metrics/AbcSize end register 'Faraday', 'faraday', FaradaySpy.new end