Sha256: 5ec657c61e0aefad404e7696d122246b9570c64f71a9019e60731e228f22d42d
Contents?: true
Size: 596 Bytes
Versions: 4
Compression:
Stored size: 596 Bytes
Contents
# encoding: utf-8 require 'new_relic/control' module Adhearsion class Reporter class NewrelicNotifier include Singleton def init NewRelic::Agent.manual_start(Adhearsion::Reporter.config.newrelic.to_hash) end def notify(ex) NewRelic::Agent.notice_error(ex) rescue Exception => e logger.error "Error posting exception to Newrelic" logger.warn "Original exception message: #{e.message}" raise end def self.method_missing(m, *args, &block) instance.send m, *args, &block end end end end
Version data entries
4 entries across 4 versions & 1 rubygems