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



10
11
12
13
14
15
16
17
18
# File 'lib/new_relic/agent/instrumentation/rails3/errors.rb', line 10

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