Changelog

Improving AppSignal, one deploy at a time.

Sep 26, 2024

Heartbeat check-ins and other improvements

Ruby4.1.0

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:

    Ruby
    loop 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:

    Ruby
    def 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.

View all Ruby updates

Start your free trial

Don’t let the bad bugs bite. Try AppSignal for free.

AppSignal offers a 30-day free trial, no credit card is required. All features are available in all plans. Start monitoring your application in just a few clicks!