nestlens v0.21.1 patch

Database error values stay out of what NestLens records

by Muhammed Lütfü ÖĞRETİCİ ·

NestLens dashboard in dark mode: entry counts per watcher, errors, latency and slow queries, with recent activity from a NestJS app

Laravel Telescope-style debugging and monitoring dashboard for NestJS apps

#typescript #devtools #library #web #linux #macos #windows #mit #ai-assisted

Changelog

NestLens records what a NestJS application does (requests, queries, exceptions, logs, jobs, cache, Redis, outgoing HTTP and more) and shows it in a live dashboard, the way Laravel Telescope does for Laravel.

0.21.1 is a hardening release, made from a measurement against a real production application.

Values from failed queries no longer leak. When query parameters are not recorded (the default outside development), the values a database quotes in its error, such as a duplicate key, a failing row or a statement echoed by the ORM, are now taken out of every entry that error reaches: the query, the exception, the log line and the request. It reads the error shapes of PostgreSQL, MySQL/MariaDB, SQL Server, MongoDB, TypeORM and Prisma, and was checked against real PostgreSQL, MySQL and MongoDB servers. Ordinary log lines that only look similar are left alone.

Alerts page once, for the right thing. A failed HTTP request or a GraphQL resolver's 5xx now raises a single alert that says what failed. A 4xx raises none.

Redis storage holds up under eviction. Evicted entries are taken out of every index, each storage uses one connection, and NestLens warns when Redis is set to an allkeys eviction policy.

Smaller fixes. A field named cookie is masked by default. Production is read from the variable you configure, not only NODE_ENV. An exception's cause gets its stack sanitised too. A request whose caller disconnected is still recorded.

Full list: https://github.com/mogretici/nestlens/blob/main/CHANGELOG.md

Links

← Back to the feed