module NewRelic::Agent::Instrumentation::Rails3::ActionController
Constants
- INSTRUMENTATION_NAME
Public Instance Methods
newrelic_metric_path(action_name_override = nil)
click to toggle source
determine the path that is used in the metric name for the called controller action
# File lib/new_relic/agent/instrumentation/rails3/action_controller.rb, line 16 def newrelic_metric_path(action_name_override = nil) action_part = action_name_override || action_name if action_name_override || self.class.action_methods.include?(action_part) "#{self.class.controller_path}/#{action_part}" else "#{self.class.controller_path}/(other)" end end
process_action(*args)
click to toggle source
Calls superclass method
# File lib/new_relic/agent/instrumentation/rails3/action_controller.rb, line 25 def process_action(*args) # THREAD_LOCAL_ACCESS NewRelic::Agent.record_instrumentation_invocation(INSTRUMENTATION_NAME) munged_params = NewRelic::Agent::ParameterFiltering.filter_rails_request_parameters(request.filtered_parameters) perform_action_with_newrelic_trace(:category => :controller, :name => self.action_name, :path => newrelic_metric_path, :params => munged_params, :class_name => self.class.name) do super end end