@dudousxd/nestjs-diagnostics
Version:
A standard convention for @dudousxd/nestjs-* libs to emit observability events over node:diagnostics_channel.
20 lines • 957 B
TypeScript
import { type OnApplicationBootstrap, type OnApplicationShutdown } from '@nestjs/common';
import { DiscoveryService, MetadataScanner } from '@nestjs/core';
export declare class DiagnosticsExplorer implements OnApplicationBootstrap, OnApplicationShutdown {
private readonly discovery;
private readonly scanner;
private readonly logger;
private readonly subscriptions;
private readonly wildcards;
private offChannelRegistered;
constructor(discovery: DiscoveryService, scanner: MetadataScanner);
onApplicationBootstrap(): void;
onApplicationShutdown(): void;
/** Subscribe once to `name`; the listener fans the envelope into `invoke`. */
private subscribe;
/** Invoke a handler, swallowing sync throws and async rejections so a buggy
* reaction can never break the synchronous `emit()` that triggered it. */
private safeInvoke;
private logError;
}
//# sourceMappingURL=diagnostics.explorer.d.ts.map