Sha256: f2ab2e869fceb4d1e9db388a2ec51479e542874c8c6a88badd54529c5270b4e6
Contents?: true
Size: 531 Bytes
Versions: 5
Compression:
Stored size: 531 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}/".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
5 entries across 5 versions & 1 rubygems