Class: Skylight::Probes::Rack::Builder::Probe Private

Inherits:
Object
  • Object
show all
Defined in:
lib/skylight/probes/rack_builder.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.



24
25
26
27
28
29
30
# File 'lib/skylight/probes/rack_builder.rb', line 24

def install
  if defined?(::Rack.release) && Gem::Version.new(::Rack.release) >= ::Gem::Version.new("1.4") &&
       defined?(::Rack::Builder)
    require "skylight/probes/middleware"
    ::Rack::Builder.prepend(Instrumentation)
  end
end