Class: Appsignal::Rack::GrapeMiddleware
- Inherits:
-
AbstractMiddleware
- Object
- AbstractMiddleware
- Appsignal::Rack::GrapeMiddleware
- Defined in:
- lib/appsignal/rack/grape_middleware.rb
Constant Summary
Constants inherited from AbstractMiddleware
AbstractMiddleware::DEFAULT_ERROR_REPORTING
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ GrapeMiddleware
constructor
private
A new instance of GrapeMiddleware.
Methods inherited from AbstractMiddleware
Constructor Details
#initialize(app, options = {}) ⇒ GrapeMiddleware
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 GrapeMiddleware.
8 9 10 11 12 |
# File 'lib/appsignal/rack/grape_middleware.rb', line 8 def initialize(app, = {}) [:instrument_event_name] = "process_request.grape" [:report_errors] = lambda { |env| !env["grape.skip_appsignal_error"] } super end |