Sha256: 5a25eb799587dc526cee06ff25f87a0beb964ede912cb21d398ad30378a6e52a
Contents?: true
Size: 562 Bytes
Versions: 18
Compression:
Stored size: 562 Bytes
Contents
# frozen_string_literal: true module Appsignal module Rack # @api private class HanamiMiddleware < AbstractMiddleware def initialize(app, options = {}) options[:params_method] = nil options[:instrument_event_name] ||= "process_action.hanami" super end private def add_transaction_metadata_after(transaction, request) transaction.add_params { params_for(request) } end def params_for(request) ::Hanami::Action.params_class.new(request.env).to_h end end end end
Version data entries
18 entries across 18 versions & 1 rubygems