Sha256: aab2d50f2a9599a439c13b587f82476f08728387aaecdba9c70371d07dd9ccc4
Contents?: true
Size: 1.27 KB
Versions: 22
Compression:
Stored size: 1.27 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 # @api public # @deprecated def newrelic_notice_error(exception, custom_params = {}) NewRelic::Agent::Deprecator.deprecate("ActionController#newrelic_notice_error", "NewRelic::Agent#notice_error") NewRelic::Agent::Transaction.notice_error(exception, :metric => newrelic_metric_path, :custom_params => custom_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 Rails 3 Error instrumentation' end executes do class ActionController::Base include NewRelic::Agent::Instrumentation::Rails3::Errors end end end
Version data entries
22 entries across 22 versions & 2 rubygems