Sha256: cc31b48fe6cb49388e5bd6b2d1ad7af93c4c78e9471653dfb06c2dcb4233e36a
Contents?: true
Size: 1.18 KB
Versions: 34
Compression:
Stored size: 1.18 KB
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. module NewRelic module Agent module Instrumentation module Rails3 module Errors 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 end end end end end DependencyDetection.defer do @name = :rails3_error depends_on do defined?(::Rails) && ::Rails::VERSION::MAJOR.to_i == 3 end depends_on do defined?(ActionController) && defined?(ActionController::Base) end executes do ::NewRelic::Agent.logger.info 'Installing Rails3 Error instrumentation' end executes do class ActionController::Base include NewRelic::Agent::Instrumentation::Rails3::Errors end end end
Version data entries
34 entries across 34 versions & 1 rubygems