Frameworks
- Express
- Fastify
- Koa
- Hono
- NestJS
- Next.js
- node:http
- GraphQL, one endpoint per operation
- Response bodies (opt‑in)
- The HUD on HTML pages, in development
One middleware for Express, Fastify, Koa, Hono, NestJS, or Next.js. One line per database, queue, and logger. Outgoing fetch and node:http calls are traced for free. Requires Node 22.13 or newer.
Latest release: 1.0.0-rc.2
const wizelens = createWizeLens({ service: "orders-api" }); instrumentPg(wizelens, pg); instrumentPino(wizelens, logger); instrumentAmqplib(wizelens, amqplib); const app = express(); app.use(wizelens.middleware);
Everything below lands in the same trace as the request that caused it.
No agent to run. You tell WizeLens about the driver you use, and every query on it is traced. No access to the code? NODE_OPTIONS="--import @wizeworks/lens-node/auto" does it with no code change.
instrumentPg(wizelens, pg)Prisma on pg, or Drizzle on better-sqlite3? The ORM and the driver under it never record the same query twice.
WizeLens copies each line into its trace. Your logger still writes to the console, a file, or wherever it wrote before.
Sample with WIZELENS_SAMPLE_RATE and WizeLens still keeps every trace with an error or a span of 1 second or more. Log lines are kept or dropped with their trace.
sampling: { rate: 0.1 }The add-on reads source maps from any dev server on localhost, or from the build folders you name, so a minified browser error shows your file and line.
sourceMaps: { dirs: ["../web/dist"] }On unless NODE_ENV is production. Turn it on there with WIZELENS_ENABLED=true: it sends to your cloud and serves nothing anyone can read.
A Vue front end, a .NET gateway, a Node service, and a Python worker join the same trace, and the same insights run on all of it.