Skip to content

Commit

Permalink
Add parameter filtering to error collection for agent (like TT does)
Browse files Browse the repository at this point in the history
  • Loading branch information
cirne committed Jul 30, 2008
1 parent 58f25f4 commit f0efb45
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/newrelic/agent/instrumentation/errors.rb
Expand Up @@ -8,8 +8,14 @@ module ActionController
class Base
def rescue_action_with_newrelic_trace(exception)
self.class.trace_method_execution("Errors/all", false, true, nil) do
if respond_to? :filter_parameters
local_copy = filter_parameters(params)
else
local_copy = params
end

NewRelic::Agent.agent.error_collector.notice_error(_determine_metric_path,
params, exception)
local_copy, exception)
rescue_action_without_newrelic_trace exception
end
end
Expand Down

0 comments on commit f0efb45

Please sign in to comment.