Module: Roqua::Support::Errors
- Defined in:
- lib/roqua/support/errors.rb
Class Method Summary collapse
- .extra_parameters ⇒ Object
- .extra_parameters=(hash) ⇒ Object
- .report(exception, context = {}) ⇒ Object
Class Method Details
.extra_parameters ⇒ Object
4 5 6 |
# File 'lib/roqua/support/errors.rb', line 4 def self.extra_parameters @extra_parameters || {} end |
.extra_parameters=(hash) ⇒ Object
8 9 10 |
# File 'lib/roqua/support/errors.rb', line 8 def self.extra_parameters=(hash) @extra_parameters = hash end |
.report(exception, context = {}) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/roqua/support/errors.rb', line 12 def self.report(exception, context = {}) return if const_defined?(:Rails) and Rails.env.test? parameters, controller, skip_backtrace = merge_parameters(context) notification_urls = [] # Notify Airbrake notification_urls << notify_airbrake(exception, controller, parameters) # Notify AppSignal notification_urls << notify_appsignal(exception, parameters) # Notify Roqua logging log_exception(exception, parameters, notification_urls.compact, skip_backtrace) end |