Sha256: 8cf41714e99815e7ba193211d06a0c0691261f8c8a07bf86575013e837a3b7c4
Contents?: true
Size: 458 Bytes
Versions: 16
Compression:
Stored size: 458 Bytes
Contents
module Appsignal module Middleware class ActionViewSanitizer TARGET_EVENT_CATEGORY = 'action_view'.freeze def call(event) if event.name.end_with?(TARGET_EVENT_CATEGORY) identifier = event.payload[:identifier] if identifier identifier.gsub!(root_path, '') end end yield end def root_path @root_path ||= "#{Rails.root.to_s}/" end end end end
Version data entries
16 entries across 16 versions & 1 rubygems