module NewRelic::Agent::Instrumentation::Tilt::Chain

Public Class Methods

instrument!() click to toggle source
# File lib/new_relic/agent/instrumentation/tilt/chain.rb, line 8
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

Public Instance Methods

render_with_new_relic(*args, &block) click to toggle source
# File lib/new_relic/agent/instrumentation/tilt/chain.rb, line 12
def render_with_new_relic(*args, &block)
  render_with_tracing(*args) {
    render_without_newrelic(*args, &block)
  }
end