Module: NewRelic::Agent::Instrumentation::Rails3::Errors

Defined in:
lib/new_relic/agent/instrumentation/rails3/errors.rb

Instance Method Summary collapse

Instance Method Details

#newrelic_notice_error(exception, custom_params = {}) ⇒ Object



6
7
8
9
10
# File 'lib/new_relic/agent/instrumentation/rails3/errors.rb', line 6

def newrelic_notice_error(exception, custom_params = {})
  filtered_params = (respond_to? :filter_parameters) ? filter_parameters(params) : params
  filtered_params.merge!(custom_params)
  NewRelic::Agent.agent.error_collector.notice_error(exception, request, newrelic_metric_path, filtered_params)
end