Sha256: d986838292ec0470f1d9e9cee9ca961adfca4ae2987de91b49151e6b1e1493a1
Contents?: true
Size: 648 Bytes
Versions: 2
Compression:
Stored size: 648 Bytes
Contents
# frozen_string_literal: true class UniformNotifier class AppsignalNotifier < Base class << self def active? !!UniformNotifier.appsignal end protected 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
uniform_notifier-1.14.2 | lib/uniform_notifier/appsignal.rb |
uniform_notifier-1.14.1 | lib/uniform_notifier/appsignal.rb |