Add support for heartbeat check-ins
Added
-
Add support for heartbeat check-ins.
Use the
appsignal.check_in.heartbeat
function to send a single heartbeat check-in event from your application. This can be used, for example, in your application's main loop:Heartbeats are deduplicated and sent asynchronously, without blocking the current thread. Regardless of how often the
.heartbeat
function 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:
Changed
- Change the primary download mirror for integrations.
- Send check-ins concurrently. When calling
appsignal.check_in.cron
, instead of blocking the current thread while the check-in events are sent, schedule them to be sent in a separate thread.
View the Python package v1.4.0 changelog for more information.