-
Notifications
You must be signed in to change notification settings - Fork 289
Closed
Description
Hi all,
Recently was dealing with an internal error, and also noticed that sometimes I'd get 500 responses from the server (async). Was looking for hooks so I could track / monitor those situations, but couldn't find any. End up adding a code like this:
Rollbar::Notifier.prepend(Module.new do
def handle_response(response)
if response.code != '200'
# tracking
end
super
end
def report_internal_error(exception)
# tracking
super
end
end)
Would be really nice if there were hooks for async responses and internal errors when configuring Rollbar.