Heartbeat check-ins and other improvements
Added
-
Add support for heartbeat check-ins.
Use the
Appsignal::CheckIn.heartbeat
method to send a single heartbeat check-in event from your application. This can be used, for example, in your application's main loop:Rubyloop do Appsignal::CheckIn.heartbeat("job_processor") process_job end
Heartbeats are deduplicated and sent asynchronously, without blocking the current thread. Regardless of how often the
.heartbeat
method is called, at most one heartbeat with the same identifier will be sent every ten seconds.Pass
continuous: true
as the second argument to send heartbeats continuously during the entire lifetime of the current process. This can be used, for example, after your application has finished its boot process:Rubydef main start_app Appsignal::CheckIn.heartbeat("my_app", continuous: true) end
-
Include the first backtrace line from error causes to show where each cause originated in the interface.
View the Ruby gem v4.1.0 changelog for more information.