Release candidate

Every Node request, one line at a time.

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

1 line
per driver, queue, or logger
6
frameworks, plus node:http and GraphQL
Node 22.13+
24 is best
server.ts
const wizelens = createWizeLens({ service: "orders-api" });
instrumentPg(wizelens, pg);
instrumentPino(wizelens, logger);
instrumentAmqplib(wizelens, amqplib);

const app = express();
app.use(wizelens.middleware);
POST /orders · 96 ms
POST /orders96 ms
INSERT INTO orders (customer_id, total) …4.2 ms
SELECT qty FROM stock WHERE sku = $11.1 ms
info order 1042 created
publish order.created2.4 ms
fetch POST billing/invoices58 ms

What gets captured.

Everything below lands in the same trace as the request that caused it.

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

Databases

  • pg
  • postgres.js
  • mysql2
  • better‑sqlite3
  • node:sqlite
  • Prisma
  • TypeORM
  • Drizzle
  • Redis (ioredis, node‑redis)
  • MongoDB
  • Elasticsearch
  • traceDb() for any driver

Calls out

  • fetch and undici, automatic
  • node:http and https (axios, got, AWS SDK), automatic
  • @grpc/grpc‑js

Messages

  • amqplib (RabbitMQ)
  • kafkajs
  • @azure/service‑bus
  • BullMQ
  • Amazon SQS

Logs

  • console, automatic
  • pino
  • winston
  • bunyan
  • log4js
  • consola
  • NestJS
  • OpenTelemetry logs
  • Lines outside a request, by level and rate

Metrics

  • CPU and memory
  • V8 heap
  • Event loop delay
  • GC pauses
  • Your OpenTelemetry metrics

Users and tags

  • setUser(id, { name }) for the Users page
  • tag(key, value) on any request
  • expected() for a 5xx you meant
  • Or the X‑WizeLens‑Expected header

Security

  • Risks found in real traffic
  • Mapped to the OWASP Top 10
  • The same rules as the .NET add‑on

Packages

  • Every npm package installed
  • Checked against OSV on the hub and cloud
  • Off with WIZELENS_PACKAGES=false

Small on purpose.

One line per library.

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)

No query is counted twice.

Prisma on pg, or Drizzle on better-sqlite3? The ORM and the driver under it never record the same query twice.

Your logs stay where they were.

WizeLens copies each line into its trace. Your logger still writes to the console, a file, or wherever it wrote before.

Errors and slow traces stay.

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 }

Browser stacks, in your source.

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"] }

Off in production.

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.

Mixing stacks? One trace across all of them.

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.