UNPKG

@dudousxd/nestjs-telescope

Version:

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

20 lines 1.17 kB
import { type Entry } from '../entry/entry.js'; import type { StorageProvider } from '../storage/storage-provider.js'; import type { DiagnoseContext } from './diagnoser.js'; /** * Build the {@link DiagnoseContext} for an exception entry. This is the SHARED * context builder reused by BOTH the on-demand diagnose endpoint and auto-mode — * it mirrors how the `new-exception` alert assembles its rich context (the * exception's own fields + the sibling request entry from the same batch), but * additionally collects the batch's recent query SQL (the queries leading up to * the failure are prime root-cause signal). * * Reads ONLY already-redacted stored content; SQL is taken without bindings, so * no query VALUES are ever handed to the diagnoser. * * @param storage Where to read the exception's batch from. * @param entry The exception (or client_exception) entry to diagnose. * @param occurrenceCount Times this family was seen in the window (>= 1). */ export declare function buildDiagnoseContext(storage: StorageProvider, entry: Entry, occurrenceCount: number): Promise<DiagnoseContext>; //# sourceMappingURL=diagnose-context-builder.d.ts.map