Capture the state behind each error.
errorcore records local variables, bound arguments, and in-flight values at the point an error is thrown. This shows the state that led to the failure.
1import errorcore from "errorcore";23errorcore.init({ service: "auth-api", captureIO: true });45const session = await db.queryOne(6 "select user_id from sessions where token = ?",7 [token]8);910await rotateSession(session.user_id);
errorcore records the throw boundary, request flow, and sensitive-path guards so production exceptions arrive with enough context to debug quickly and safely.
errorcore records local variables, bound arguments, and in-flight values at the point an error is thrown. This shows the state that led to the failure.
Every outbound query, HTTP call, and DNS lookup is recorded in sequence. You can follow the execution path leading up to the error.
Incident payloads are encrypted before leaving the process. The collector only receives ciphertext. Keys remain with the service.
Headers, environment variables, and request fields can be specified. All other data is retained for debugging.
If delivery fails, payloads are stored locally and retried when connectivity returns.
No tracing layer. No metrics pipeline. No unnecessary dependencies.