Sha256: 5c3b7ce12ccbc1183c455f91189e04e9bd3afca8903220ea69912ab0a7e46654
Contents?: true
Size: 588 Bytes
Versions: 20
Compression:
Stored size: 588 Bytes
Contents
module Appsignal module Rack class JSExceptionCatcher def initialize(app, options = {}) Appsignal.logger.debug 'Initializing Appsignal::Rack::JSExceptionCatcher' @app, @options = app, options end def call(env) if env['PATH_INFO'] == Appsignal.config[:frontend_error_catching_path] body = JSON.parse(env['rack.input'].read) transaction = JSExceptionTransaction.new(body) transaction.complete! return [ 200, {}, []] else @app.call(env) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems