You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classErrors::Showdefhandle_error(e : Exception)
record_error(e)
enddefrecord_error(e : Exception)
# Record on Honeybadger or something elseendend
It may be good to have some kind of LuckyErrorNotifier that can take 1 or more adapters. So you could technically send to multiple error backends if desired. Ship with some adapters for common services like Sentry or BugSnag
The text was updated successfully, but these errors were encountered:
This one is a little tricky. The next release of Raven will actually include built-in lucky support. And then Bugsnag doesn't really take much but a single line.
Now, what I'm thinking (just a rough draft here) is that this gets added in right below this line to do something like
#...rescue error : Exception
send_error_report(context, error) ifLucky::Env.production?
if settings.show_debug_output
#...privatedefsend_error_report(context, error)
Lucky::ExceptionReporter.engines.each do |engine|
engine.call(context, error)
endend
This would be where the engines are just Array(Proc(HTTP::Server::Context, Exception)) and defined in the config somewhere.
I would imagine this file would be generated with all projects, and then just have a bunch of comments showing examples of what someone could do. If you like this, I can start working on it.
Edit: I should note that this is sort of how we're currently using them, and reporting has been pretty great. Only downside is handlers that error out before they get here don't get exceptions. No clue how to fix that.
Or maybe it would be in Errors::Show?
I'm imagining something like this:
It may be good to have some kind of
LuckyErrorNotifier
that can take 1 or more adapters. So you could technically send to multiple error backends if desired. Ship with some adapters for common services like Sentry or BugSnagThe text was updated successfully, but these errors were encountered: