@innoapm/sdk-node
v0.7.0
Published
Node.js SDK for the innoAPM platform
Readme
@innoapm/sdk-node
Node.js SDK for innoAPM — an error tracking and application performance monitoring platform.
Auto-captures uncaught exceptions and unhandled promise rejections, plus optional breadcrumbs from console and outgoing HTTP requests.
Install
npm install @innoapm/sdk-nodeQuick start
// Top of your entry file — before any other imports if possible.
import { init } from "@innoapm/sdk-node";
init({
dsn: process.env.INNOAPM_DSN,
environment: process.env.NODE_ENV ?? "production",
release: process.env.GIT_SHA,
});Any uncaught exception or unhandled promise rejection will now appear in your innoAPM dashboard.
Manual capture
import { captureException, captureMessage, addBreadcrumb } from "@innoapm/sdk-node";
try {
doWork();
} catch (err) {
captureException(err, { userId: "42" });
}
captureMessage("checkout completed", "info");
addBreadcrumb({ category: "auth", message: "user signed in", level: "info" });Docs
Full usage guide, DSN format, and dashboard walkthrough live in the main repo.
License
MIT © Innoworks Software Solutions Pvt Ltd
