Class: Skylight::Probes::Sinatra::Probe Private
- Defined in:
- lib/skylight/probes/sinatra.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
- #install ⇒ Object private
Instance Method Details
#install ⇒ Object
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.
52 53 54 55 56 57 58 59 60 |
# File 'lib/skylight/probes/sinatra.rb', line 52 def install if ::Sinatra::VERSION < "2.0.0" Skylight.error "Sinatra must be version 2.0.0 or greater." return end ::Sinatra::Base.singleton_class.prepend(ClassInstrumentation) ::Sinatra::Base.prepend(Instrumentation) end |