Sha256: 98611ba579a8e2b57510155aa49452f7960ccceec5d8b9fa4d5d1d496a928845
Contents?: true
Size: 725 Bytes
Versions: 20
Compression:
Stored size: 725 Bytes
Contents
module Appsignal module Rack class Instrumentation def initialize(app, options = {}) Appsignal.logger.debug 'Initializing Appsignal::Rack::Instrumentation' @app, @options = app, options end def call(env) ActiveSupport::Notifications.instrument( 'process_action.rack', raw_payload(env) ) do |payload| @app.call(env) end end def raw_payload(env) request = ::Rack::Request.new(env) { :action => "#{request.request_method}:#{request.path}", :params => request.params, :method => request.request_method, :path => request.path } end end end end
Version data entries
20 entries across 20 versions & 1 rubygems