Install tracernest-logger for Node.js

TracerNest is a self-hosted observability tool. Its Node.js package, tracernest-logger, collects application logs and HTTP request information and serves a dashboard inside your backend.

Add the package

For the 2.0.x release tested here, use Node.js 22.5 or later. From your Node.js project directory, run:

npm install tracernest-logger

Try it with Express

Install Express with npm install express if needed. Save this example as server.mjs. Mount the monitoring middleware before body parsers and application routes so it can observe requests.

import express from 'express';
import { TracerNestLogger } from 'tracernest-logger';

const app = express();
const tracer = new TracerNestLogger({ path: '/tracernest' });
app.use(tracer.middleware());
app.get('/health', (_req, res) => res.json({ ok: true }));
app.listen(3000, '127.0.0.1');

Run node server.mjs, visit http://127.0.0.1:3000/health, then open http://127.0.0.1:3000/tracernest to view the dashboard.

Find release information on the npm package page and inspect the project's benchmark measurements.