Sha256: fcbfbf660283745a8d26a8d1ddae912d653144fe2782524f7ccfeb3557194aa6

Contents?: true

Size: 498 Bytes

Versions: 28

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true

module Skylight
  module Normalizers
    module Graphiti
      class Render < Normalizer
        register "render.graphiti"

        CAT = "view.render.graphiti"
        ANONYMOUS = "<Anonymous Resource>"

        def normalize(_trace, _name, payload)
          resource_class = payload[:proxy]&.resource&.class
          title = "Render #{resource_class&.name || ANONYMOUS}"
          desc = nil

          [CAT, title, desc]
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
skylight-6.1.0.beta lib/skylight/normalizers/graphiti/render.rb
skylight-6.0.4 lib/skylight/normalizers/graphiti/render.rb
skylight-6.0.3 lib/skylight/normalizers/graphiti/render.rb
skylight-5.3.5 lib/skylight/normalizers/graphiti/render.rb
skylight-6.0.2 lib/skylight/normalizers/graphiti/render.rb
skylight-6.0.1 lib/skylight/normalizers/graphiti/render.rb
skylight-6.0.0 lib/skylight/normalizers/graphiti/render.rb
skylight-6.0.0.beta2 lib/skylight/normalizers/graphiti/render.rb
skylight-6.0.0.beta lib/skylight/normalizers/graphiti/render.rb
skylight-5.3.4 lib/skylight/normalizers/graphiti/render.rb
skylight-5.3.3 lib/skylight/normalizers/graphiti/render.rb
skylight-5.3.2 lib/skylight/normalizers/graphiti/render.rb
skylight-5.3.1 lib/skylight/normalizers/graphiti/render.rb
skylight-5.3.0 lib/skylight/normalizers/graphiti/render.rb
skylight-5.2.0 lib/skylight/normalizers/graphiti/render.rb
skylight-5.2.0.beta2 lib/skylight/normalizers/graphiti/render.rb
skylight-5.2.0.beta lib/skylight/normalizers/graphiti/render.rb
skylight-5.1.1 lib/skylight/normalizers/graphiti/render.rb
skylight-5.1.0.beta3 lib/skylight/normalizers/graphiti/render.rb
skylight-5.1.0.beta2 lib/skylight/normalizers/graphiti/render.rb