Class: Appsignal::Rack::SinatraBaseInstrumentation Private
- Inherits:
-
AbstractMiddleware
- Object
- AbstractMiddleware
- Appsignal::Rack::SinatraBaseInstrumentation
- Defined in:
- lib/appsignal/rack/sinatra_instrumentation.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.
Constant Summary
Constants inherited from AbstractMiddleware
AbstractMiddleware::DEFAULT_ERROR_REPORTING
Instance Attribute Summary collapse
- #raise_errors_on ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ SinatraBaseInstrumentation
constructor
private
A new instance of SinatraBaseInstrumentation.
Methods inherited from AbstractMiddleware
Constructor Details
#initialize(app, options = {}) ⇒ SinatraBaseInstrumentation
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 SinatraBaseInstrumentation.
32 33 34 35 36 37 38 |
# File 'lib/appsignal/rack/sinatra_instrumentation.rb', line 32 def initialize(app, = {}) [:request_class] ||= Sinatra::Request [:params_method] ||= :params [:instrument_event_name] ||= "process_action.sinatra" super @raise_errors_on = raise_errors?(app) end |
Instance Attribute Details
#raise_errors_on ⇒ Object (readonly)
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.
30 31 32 |
# File 'lib/appsignal/rack/sinatra_instrumentation.rb', line 30 def raise_errors_on @raise_errors_on end |