UNPKG

@dudousxd/nestjs-telescope

Version:

Laravel Telescope-style observability console for NestJS — core: watchers, recorder, correlation, SQLite store, headless API.

15 lines 765 B
/** Build the WatcherContext handed to each event-based watcher at registration. */ export function createWatcherContext(service, config, moduleRef) { return { record: (input) => service.record(input), // Delegated, not reimplemented: the family hash, the 4xx control-flow skip // and the entry shape must be identical whether the throw happened on a // route or inside a job body, or the exceptions view splits in two. recordException: (error, details) => service.recordException(error, details), runInBatch: (origin, fn) => service.runInBatch(origin, fn), beginBatch: (origin) => service.beginBatch(origin), config, moduleRef, }; } //# sourceMappingURL=watcher-context.factory.js.map