PRO

Node Diagnostics Telemetry

Zero-instrumentation HTTP observability with no APM vendor and no logging code in the handlers at all. Everything is observed from outside through the diagnostics channels Node core already publishes: http.server.request.start and response.finish for inbound requests, undici:request:create for outbound fetch, and net.server.socket for connection counts, with request ids from AsyncLocalStorage so an outbound call correlates to the request that made it. Emits JSON logs, per-route latency histograms, and a Prometheus /metrics endpoint. Documents two real behaviors on current Node: bindStore on http.server.request.start does not propagate for server requests so it uses enterWith in a synchronous subscriber, and response.finish can fire outside the request context so it correlates through a WeakMap keyed by the request object. Zero dependencies.

Install
npx shadcn@latest add @compronents/node-diagnostics-telemetry

Installs from ui.aryank.space. Needs a registry token and a one-time @compronents entry in components.json. The docs walk through both.

Visualization
request
IncomingMessage
channel
unknown
subscribe("http.server.request.start", (msg) => store.enterWith(randomUUID()))

Requests are observed from outside through Node's diagnostics channels, so there is no instrumentation code in the handlers at all.

Files
Checking access…
Dependencies
None.