lib/elastic_apm/spies/tilt.rb in elastic-apm-1.1.0 vs lib/elastic_apm/spies/tilt.rb in elastic-apm-2.0.0

- old
+ new

@@ -3,19 +3,19 @@ module ElasticAPM # @api private module Spies # @api private class TiltSpy - TYPE = 'template.tilt'.freeze + TYPE = 'template.tilt' 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.span name, TYPE do + ElasticAPM.with_span name, TYPE do render_without_apm(*args, &block) end end end end