Sha256: 1e2886753b477aa3580943e640ad86a5a4c0784f0527fd3a936a3bc89d6a8998

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

class UniformNotifier
  class SentryNotifier < Base
    class << self
      def active?
        !!UniformNotifier.sentry
      end

      protected

      def _out_of_channel_notify(data)
        message = data.values.compact.join("\n")

        opt = {}
        opt = UniformNotifier.sentry if UniformNotifier.sentry.is_a?(Hash)

        exception = Exception.new(message)
        Sentry.capture_exception(exception, opt)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
uniform_notifier-1.14.1 lib/uniform_notifier/sentry.rb