vendor/plugins/newrelic_rpm/lib/newrelic/agent/instrumentation/dispatcher.rb
#
# NOTE - this block is duplicated below to support rails < 2.0
#
this block is duplicated below to support rails < 2.0
this block is duplicated below to support rails < 2 . 0
def dispatch_newrelic(*args)
        NewRelic::Agent.agent.start_transaction
        Thread.current[:controller_ignored] = nil
        @@newrelic_mongrel_queue_stat.trace_call(Time.now - Thread.current[:started_on]) if Thread.current[:started_on]
        t0 = Time.now
        begin
          result = dispatch_without_newrelic(*args)
        ensure
          duration = Time.now - t0
          @@newrelic_rails_dispatch_stat.trace_call duration if Thread.current[:controller_ignored].nil?
        end
        result
      end
def dispatch_newrelic ( * args ) NewRelic :: Agent . agent . start_transaction Thread . current [ :controller_ignored ] = nil @@newrelic_mongrel_queue_stat . trace_call ( Time . now - Thread . current [ :started_on ] ) if Thread . current [ :started_on ] t0 = Time . now begin result = dispatch_without_newrelic ( * args ) ensure duration = Time . now - t0 @@newrelic_rails_dispatch_stat . trace_call duration if Thread . current [ :controller_ignored ] . nil? end result end
NOTE - this block is duplicated below to support rails < 2.0
NOTE - this block is duplicated below to support rails < 2 . 0
args
<not_specific>