class Honeybadger::Plugins::Rails::ErrorSubscriber

def self.report(exception, handled:, severity:, context: {}, source: nil)

def self.report(exception, handled:, severity:, context: {}, source: nil)
  # We only report unhandled errors (`Rails.error.handle`)
  # Unhandled errors will be caught by our integrations (eg middleware), which have richer context
  return unless handled
  return if source_ignored?(source)
  tags = ["severity:#{severity}", "handled:#{handled}"]
  tags << "source:#{source}" if source
  Honeybadger.notify(exception, context: context, tags: tags)
end