Report ActionCable errors to Sentry

This commit is contained in:
Zach Gollwitzer
2025-03-17 17:26:19 -04:00
parent 78baf2b327
commit 087dd720c1

View File

@@ -1,4 +1,10 @@
module ApplicationCable
class Connection < ActionCable::Connection::Base
rescue_from StandardError, with: :report_error
private
def report_error(e)
Sentry.capture_exception(e)
end
end
end