Sha256: 22f1a9d53aa299d77d8b93e1a54d37fd04697ebcbc4ede299bd40a7cb689cfb9

Contents?: true

Size: 430 Bytes

Versions: 19

Compression:

Stored size: 430 Bytes

Contents

module Skylight
  module Normalizers
    class ProcessAction < Normalizer
      register "process_action.action_controller"

      def normalize(trace, name, payload)
        trace.endpoint = controller_action(payload)
        [ "app.controller.request", trace.endpoint, nil, payload ]
      end

    private

      def controller_action(payload)
        "#{payload[:controller]}##{payload[:action]}"
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
skylight-0.1.8 lib/skylight/normalizers/process_action.rb
skylight-0.1.7 lib/skylight/normalizers/process_action.rb
skylight-0.1.7.alpha1 lib/skylight/normalizers/process_action.rb
skylight-0.1.6 lib/skylight/normalizers/process_action.rb
skylight-0.1.6.alpha3 lib/skylight/normalizers/process_action.rb
skylight-0.1.6.alpha1 lib/skylight/normalizers/process_action.rb
skylight-0.1.5 lib/skylight/normalizers/process_action.rb
skylight-0.1.5.alpha2 lib/skylight/normalizers/process_action.rb
skylight-0.1.5.alpha1 lib/skylight/normalizers/process_action.rb
skylight-0.1.4 lib/skylight/normalizers/process_action.rb
skylight-0.1.4.alpha3 lib/skylight/normalizers/process_action.rb
skylight-0.1.4.alpha2 lib/skylight/normalizers/process_action.rb
skylight-0.1.4.alpha1 lib/skylight/normalizers/process_action.rb
skylight-0.1.3 lib/skylight/normalizers/process_action.rb
skylight-0.1.2 lib/skylight/normalizers/process_action.rb
skylight-0.1.1 lib/skylight/normalizers/process_action.rb
skylight-0.1.0 lib/skylight/normalizers/process_action.rb
skylight-0.1.0.alpha2 lib/skylight/normalizers/process_action.rb
skylight-0.1.0.alpha1 lib/skylight/normalizers/process_action.rb