Sha256: 75ab9565da122a969624a4696bdd3dcf7dd07ba4e228b2199aa693a49c5ebfc6
Contents?: true
Size: 646 Bytes
Versions: 37
Compression:
Stored size: 646 Bytes
Contents
module Appsignal module Rack class Instrumentation def initialize(app, options = {}) @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
37 entries across 37 versions & 1 rubygems