Class: Appsignal::Rack::SinatraInstrumentation
- Defined in:
- lib/appsignal/rack/sinatra_instrumentation.rb
Overview
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
-
#initialize(app, options = {}) ⇒ SinatraInstrumentation
constructor
A new instance of SinatraInstrumentation.
- #settings ⇒ Object
Constructor Details
#initialize(app, options = {}) ⇒ SinatraInstrumentation
Returns a new instance of SinatraInstrumentation.
11 12 13 14 15 |
# File 'lib/appsignal/rack/sinatra_instrumentation.rb', line 11 def initialize(app, = {}) @app, @options = app, Appsignal.logger.warn 'Please remove Appsignal::Rack::SinatraInstrumentation '\ 'from your Sinatra::Base class. This is no longer needed.' end |