Sha256: 56408ee2859eb9d74e52076c1576403a9a34ad0d722ec0e8b56529250e29501d
Contents?: true
Size: 536 Bytes
Versions: 173
Compression:
Stored size: 536 Bytes
Contents
module Appsignal class EventFormatter module ActionView class RenderFormatter < Appsignal::EventFormatter register 'render_partial.action_view' register 'render_template.action_view' BLANK = ''.freeze attr_reader :root_path def initialize @root_path = "#{Rails.root.to_s}/".freeze end def format(payload) return nil unless payload[:identifier] [payload[:identifier].sub(root_path, BLANK), nil] end end end end end
Version data entries
173 entries across 173 versions & 1 rubygems