class ElasticAPM::Spies::TiltSpy

@api private

def install

def install
  ::Tilt::Template.class_eval do
    alias render_without_apm render
    def render(*args, &block)
      name = options[:__elastic_apm_template_name] || 'Unknown template'
      ElasticAPM.with_span name, TYPE do
        render_without_apm(*args, &block)
      end
    end
  end
end

def render(*args, &block)

def render(*args, &block)
  name = options[:__elastic_apm_template_name] || 'Unknown template'
  ElasticAPM.with_span name, TYPE do
    render_without_apm(*args, &block)
  end
end