Module: PadrinoRpm::Instrumentation::Padrino

Includes:
NewRelic::Agent::Instrumentation::ControllerInstrumentation
Defined in:
lib/padrino-rpm/instrumentation/padrino.rb

Instance Method Summary collapse

Instance Method Details

#route_eval(*args, &block) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/padrino-rpm/instrumentation/padrino.rb', line 20

def route_eval(*args, &block)
  name = @route.as_options[:name]
  short_name = name.to_s.split(/_/).last

  perform_action_with_newrelic_trace(:category => :controller, :name => short_name, :params => request.params, :class_name => @route.controller)  do
    route_eval_without_newrelic(*args, &block) # RPM loads the sinatra plugin to eagerly
  end
end