@appsignal/nodejs
3.9.5 · 11 Nov 2026MIT24.2k / weekRepositoryHomepagenpmAtom feed
2.4.2 is the newest release of 2.x.
In short
5 changed
Release note
Minor - Add rootSpan and setError helpers.
Errors added to child spans are ignored by the agent. Now the rootSpan is
always accessible from the tracer object as well as setError. The setError
function allows to track errors on demand and they will be always attached
to the main current span, so they don't get ignored by the agent.Patch - Bug fix in custom timestamp calculation
Patch - Deprecate the addError function on the Span interface. Instead use the Tracer's
setErrorfunction to set the error on the root span.Patch - Add sendError helper to Tracer object.
This new helper allows you to track an error separately from any other span
inside the current context. Or use it to set up in your own error handling to
report errors in a catch-statement if no performance monitoring is needed.try { // Do complex stuff } catch (error) { appsignal.tracer().sendError(error, span => { span.setName("daily.task"); // Set a recognizable action name span.set("user_id", user_id); // Set custom tags }); }Patch - Update @appsignal/nodejs-ext dependency to 2.0.1.
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.