Sha256: f8811d12d5376be3316e7fa85bb05f93026e71a485f49ecafa5e2c6b7c51a358

Contents?: true

Size: 842 Bytes

Versions: 16

Compression:

Stored size: 842 Bytes

Contents

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.agent.error_collector.notice_error(exception, request, newrelic_metric_path, filtered_params)
          end
        end
      end
    end
  end
end

DependencyDetection.defer do
  depends_on do
    defined?(Rails) && Rails.respond_to?(:version) && Rails.version.to_i == 3
  end

  depends_on do
    defined?(ActionController) && defined?(ActionController::Base)
  end

  executes do
    class ActionController::Base
      include NewRelic::Agent::Instrumentation::Rails3::Errors
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
ghazel-newrelic_rpm-3.1.0.1 lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-3.1.0 lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-3.1.0.beta5 lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-3.1.0.beta4 lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-3.1.0.djlogging2 lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-3.1.0.djlogging lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-3.1.0.beta3 lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-3.1.0.beta2 lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-3.0.1 lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-3.1.0.beta1 lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-3.0.0 lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-3.0.0.beta2 lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-3.0.0.beta1 lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-2.14.1.logging1 lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-2.14.1 lib/new_relic/agent/instrumentation/rails3/errors.rb
newrelic_rpm-2.14.0 lib/new_relic/agent/instrumentation/rails3/errors.rb