Skip to content

Watchers

Watchers are what Lens captures. Each one records a type of signal — requests, database queries, cache operations, exceptions, mail, jobs, and more — and correlates it to the request that produced it. Enable the ones you need; ignore the rest.

Most watchers live in your framework adapter and are toggled from your lens() config. The ORM, cache, and mailer integrations ship in the watchers package:

npm install @lensjs/watchers

Available watchers

How enabling works

Request and exception watchers are on by default. The rest are opt-in via flags like cacheWatcherEnabled, mailWatcherEnabled, or a queryWatcher handler — see each watcher's page and the Configuration reference.