Sha256: 18a5e887d6645bae09e23f4b7d5302139058429812a36dbb797fce7e3577046e

Contents?: true

Size: 550 Bytes

Versions: 30

Compression:

Stored size: 550 Bytes

Contents

module Appsignal
  class EventFormatter
    # @api private
    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

30 entries across 30 versions & 1 rubygems

Version Path
appsignal-2.5.1-java lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.5.1 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.5.1.beta.1-java lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.5.1.beta.1 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.5.0-java lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.5.0 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.5.0.beta.1-java lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.5.0.beta.1 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.5.0.alpha.1-java lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.5.0.alpha.1 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.4.3 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.4.2 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.4.1 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.4.0 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.4.0.alpha.1 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.3.7 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.3.6 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.3.6.beta.1 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.3.4 lib/appsignal/event_formatter/action_view/render_formatter.rb
appsignal-2.3.3 lib/appsignal/event_formatter/action_view/render_formatter.rb