Over the last couple of weeks, we've updated the error handling in the Elixir integration. We now catch more errors, and store more information about them.
Error handling
The Phoenix integration now catches errors in our Phoenix plug instead of leaving them to be handled by our ErrorHandler. This allows for more types of errors to be caught in Phoenix requests, like timeouts.
Besides that, we've improved error categorizing, which allows us to group errors by type. Also, more information about the errors is being sent from the integration, and the failing function call is removed from the backtraces.
Deprecations
Backtraces are now handled by a separate module, so
Appsignal.ErrorHandler.format_stack/1
is deprecated in favor of
Appsignal.Backtrace.from_stacktrace/1
. Also,
Appsignal.Phoenix.extract_error_metadata/3
was moved to
Appsignal.Phoenix.Plug.extract_error_metadata/3
. These functions will be
removed in version 2.0.
Please see the changelog for more details about these improvements, and bugfixes. And as always: get in touch if you encounter problems after upgrading. We're happy to help!