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