Sha256: 9b440daaf90189e461b446e8a5f37fcf58af040f465c4f1f0b82b18e2ccbb392

Contents?: true

Size: 636 Bytes

Versions: 7

Compression:

Stored size: 636 Bytes

Contents

module NewRelic::Agent::Instrumentation
  module ErrorInstrumentation
    module Shim
      def newrelic_notice_error(*args); end      
    end
    # Send the error instance to New Relic.
    # +metric_path+ is the optional metric identifier given for the context of the error.
    # +param_info+ is additional hash of info to be shown with the error. 
    def newrelic_notice_error(exception, metric_path = nil, param_info = {})
      metric_path ||= self.newrelic_metric_path if self.respond_to? :newrelic_metric_path 
      NewRelic::Agent.agent.error_collector.notice_error(exception, nil, metric_path, param_info)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
newrelic_rpm-2.9.9 lib/new_relic/agent/instrumentation/error_instrumentation.rb
newrelic_rpm-2.9.8 lib/new_relic/agent/instrumentation/error_instrumentation.rb
newrelic_rpm-2.9.6 lib/new_relic/agent/instrumentation/error_instrumentation.rb
newrelic_rpm-2.9.5 lib/new_relic/agent/instrumentation/error_instrumentation.rb
newrelic_rpm-2.9.2 lib/new_relic/agent/instrumentation/error_instrumentation.rb
newrelic_rpm-2.9.3 lib/new_relic/agent/instrumentation/error_instrumentation.rb
newrelic_rpm-2.9.4 lib/new_relic/agent/instrumentation/error_instrumentation.rb