A true alchemist is never done exploring. And neither are we. Sign up for our Elixir Alchemy email series and receive deep insights about Elixir, Phoenix and other developments.
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.
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.
Backtraces are now handled by a separate module, so
Appsignal.ErrorHandler.format_stack/1 is deprecated in favor of
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.