Improvements for AppSignal shutdown behavior
Added
-
Add the
enable_at_exit_hook
option to configure ifAppsignal.stop
is called when the Ruby application exits. CallingAppsignal.stop
will stop the application for a moment to flush all the data to our agent before shutting down.This option has three possible values:
always
: Always callAppsignal.stop
when the program exits. On (Docker) containers it's automatically set to this value.never
: Never callAppsignal.stop
when the program exits. The default value when the program doesn't run on a (Docker) container.on_error
: CallAppsignal.stop
when the program exits with an error.
Deprecated
-
Deprecate the
Appsignal.monitor_and_stop
helper.We instead recommend using the
Appsignal.monitor
helper and configuring theenable_at_exit_hook
config option toalways
.
View the Ruby gem v4.5.8 changelog for more information.