Sha256: 65ae5b813a2d54783eadc7b0f4f365022b083a34b8c5472839e32cd3ec805f27

Contents?: true

Size: 455 Bytes

Versions: 7

Compression:

Stored size: 455 Bytes

Contents

module SystemMetrics
  module Instrument
    class ActionView < SystemMetrics::Instrument::Base

      def initialize
        super /\.action_view$/
      end

      def prepare(event)
        event.payload.each do |key, value|
          case value
          when NilClass
          when String
            event.payload[key] = prune_path(value)
          else
            event.payload[key] = value
          end
        end
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
system-metrics-0.2.5 lib/system_metrics/instrument/action_view.rb
system-metrics-0.2.4 lib/system_metrics/instrument/action_view.rb
system-metrics-0.2.3 lib/system_metrics/instrument/action_view.rb
system-metrics-0.2.2 lib/system_metrics/instrument/action_view.rb
system-metrics-0.2.1 lib/system_metrics/instrument/action_view.rb
system-metrics-0.2.0 lib/system_metrics/instrument/action_view.rb
system-metrics-0.1.0 lib/system_metrics/instrument/action_view.rb