Sha256: 8c5102b053bac7f31077ddf811891b6e653b756967e749e3217da1e173d4b44c
Contents?: true
Size: 693 Bytes
Versions: 11
Compression:
Stored size: 693 Bytes
Contents
# frozen_string_literal: true module Labkit module Tracing module Rails module ActionView # For more information on the payloads: https://guides.rubyonrails.org/active_support_instrumentation.html class RenderCollectionInstrumenter < AbstractInstrumenter def span_name(payload) "render_collection" end def tags(payload) { "component" => COMPONENT_TAG, "template.id" => payload[:identifier], "template.count" => payload[:count] || 0, "template.cache.hits" => payload[:cache_hits] || 0, } end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems