Class: Skylight::Core::Probes::Faraday::Probe Private

Inherits:
Object
  • Object
show all
Defined in:
lib/skylight/core/probes/faraday.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#installObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/skylight/core/probes/faraday.rb', line 5

def install
  ::Faraday::Connection.class_eval do
    alias_method :initialize_without_sk, :initialize

    def initialize(*args, &block)
      initialize_without_sk(*args, &block)

      @builder.insert 0, ::Faraday::Request::Instrumentation
    end
  end
end