Class: Appsignal::Rack::SinatraBaseInstrumentation Private

Inherits:
AbstractMiddleware show all
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

Instance Method Summary collapse

Methods inherited from AbstractMiddleware

#call

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, options = {})
  options[:request_class] ||= Sinatra::Request
  options[:params_method] ||= :params
  options[:instrument_event_name] ||= "process_action.sinatra"
  super
  @raise_errors_on = raise_errors?(app)
end

Instance Attribute Details

#raise_errors_onObject (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