Module: NewRelic::Agent::Instrumentation::Rails4::Errors

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

Instance Method Summary collapse

Instance Method Details

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



10
11
12
13
14
15
16
17
# File 'lib/new_relic/agent/instrumentation/rails4/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, \
      :custom_params => filtered_params)
end