Sha256: 328167aa08bb606d68019b5aecc3e7d62d7e88308d2a6bbb9951a274c13f4a39

Contents?: true

Size: 675 Bytes

Versions: 8

Compression:

Stored size: 675 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.

module NewRelic::Agent::Instrumentation
  module Tilt
    module Chain
      def self.instrument!
        ::Tilt::Template.module_eval do
          include NewRelic::Agent::Instrumentation::Tilt

          def render_with_new_relic(*args, &block)
            render_with_tracing(*args) {
              render_without_newrelic(*args, &block)
            }
          end

          alias render_without_newrelic render
          alias render render_with_new_relic
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
newrelic_rpm-8.9.0 lib/new_relic/agent/instrumentation/tilt/chain.rb
newrelic_rpm-8.8.0 lib/new_relic/agent/instrumentation/tilt/chain.rb
newrelic_rpm-8.7.0 lib/new_relic/agent/instrumentation/tilt/chain.rb
newrelic_rpm-8.6.0 lib/new_relic/agent/instrumentation/tilt/chain.rb
newrelic_rpm-8.5.0 lib/new_relic/agent/instrumentation/tilt/chain.rb
newrelic_rpm-8.4.0 lib/new_relic/agent/instrumentation/tilt/chain.rb
newrelic_rpm-8.3.0 lib/new_relic/agent/instrumentation/tilt/chain.rb
newrelic_rpm-8.2.0 lib/new_relic/agent/instrumentation/tilt/chain.rb