class UniformNotifier::AppsignalNotifier
Public Class Methods
active?()
click to toggle source
# File lib/uniform_notifier/appsignal.rb, line 6 def active? !!UniformNotifier.appsignal end
Protected Class Methods
_out_of_channel_notify(data)
click to toggle source
# File lib/uniform_notifier/appsignal.rb, line 12 def _out_of_channel_notify(data) opt = UniformNotifier.appsignal.is_a?(Hash) ? UniformNotifier.appsignal : {} exception = Exception.new(data[:title]) exception.set_backtrace(data[:backtrace]) if data[:backtrace] tags = opt.fetch(:tags, {}).merge(data.fetch(:tags, {})) namespace = data[:namespace] || opt[:namespace] Appsignal.send_error(*[exception, tags, namespace].compact) end