@appsignal/nodejs
3.9.5 · 11 Nov 2026MIT24.2k / weekRepositoryHomepagenpmAtom feed
3.9.5 is the newest release of 3.x.
In short
1 new1 fixed1 changed
Release note
Published on 2024-09-26.
Added
Add support for heartbeat check-ins.
Use the
checkIn.heartbeatmethod to send a single heartbeat check-in event from your application. This can be used, for example, in your application's main loop:import { checkIn } from "@appsignal/nodejs" while (true) { checkIn.heartbeat("job_processor") await processJob() }Heartbeats are deduplicated and sent asynchronously, without blocking the current thread. Regardless of how often the
.heartbeatmethod 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:import { checkIn } from "@appsignal/nodejs" function main() { checkIn.heartbeat("job_processor", {continuous: true}) startApp() }(minor 839073e)
Changed
Send check-ins concurrently. When calling
Appsignal.checkIn.cron, instead of blocking the current process while the check-in events are sent, schedule them to be sent in a separate process. (patch a61d16b)Do not block Node.js shutdown. It is no longer necessary to call
Appsignal.stopfor the Node.js engine to allow itself to shut down. It should still be called and awaited in production scenarios and at the end of scripts, as it ensures that scheduled check-ins are delivered. (patch 0f438d6)
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.