Sha256: ee9b9ea8bf0d4169069718fd4af399a7d00cba6626ef6dd236a5d909bb1545c6
Contents?: true
Size: 648 Bytes
Versions: 20
Compression:
Stored size: 648 Bytes
Contents
# Should support 0.2+, though not tested against older versions module Skylight module Probes module Tilt module Instrumentation def render(*args, &block) opts = { category: "view.render.template", title: @__sky_virtual_path || options[:sky_virtual_path] || basename || "Unknown template name" } Skylight.instrument(opts) { super(*args, &block) } end end class Probe def install ::Tilt::Template.prepend(Instrumentation) end end end register(:tilt, "Tilt::Template", "tilt/template", Tilt::Probe.new) end end
Version data entries
20 entries across 20 versions & 1 rubygems