Class: Appsignal::Rack::SinatraInstrumentation Private
- Defined in:
 - lib/appsignal/rack/sinatra_instrumentation.rb
 
Overview
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.
Stub old middleware. Prevents Sinatra middleware being loaded twice.
This can happen when users use the old method of including
use Appsignal::Rack::SinatraInstrumentation in their modular Sinatra
applications. This is no longer needed. Instead Appsignal now includes
use Appsignal::Rack::SinatraBaseInstrumentation automatically.
Instance Method Summary collapse
- #call(env) ⇒ Object private
 - 
  
    
      #initialize(app, options = {})  ⇒ SinatraInstrumentation 
    
    
  
  
  
    constructor
  
  
  
  
  
  private
  
    
A new instance of SinatraInstrumentation.
 - #settings ⇒ Object private
 
Constructor Details
#initialize(app, options = {}) ⇒ SinatraInstrumentation
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.
Returns a new instance of SinatraInstrumentation.
      15 16 17 18 19 20  | 
    
      # File 'lib/appsignal/rack/sinatra_instrumentation.rb', line 15 def initialize(app, = {}) @app = app @options = Appsignal.logger.warn "Please remove Appsignal::Rack::SinatraInstrumentation "\ "from your Sinatra::Base class. This is no longer needed." end  | 
  
Instance Method Details
#call(env) ⇒ 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.
      22 23 24  | 
    
      # File 'lib/appsignal/rack/sinatra_instrumentation.rb', line 22 def call(env) @app.call(env) end  | 
  
#settings ⇒ 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.
      26 27 28  | 
    
      # File 'lib/appsignal/rack/sinatra_instrumentation.rb', line 26 def settings @app.settings end  |