nest-request-interceptor
Version:
Lightweight HTTP and RPC request logging interceptors for NestJS with decorators to skip or deduplicate logs.
20 lines (19 loc) • 554 B
TypeScript
/**
* Decorator to suppress repetitive log entries for a route.
*
* The first request is always logged. Subsequent identical requests
* (same pattern + status) are suppressed until the response changes.
*
* Useful for health checks, readiness probes, and other high-frequency
* endpoints that produce identical responses.
*
* @example
* ```typescript
* @SkipNoise()
* @Get("health-check")
* healthCheck() {
* return { status: "ok" };
* }
* ```
*/
export declare const SkipNoise: () => import("@nestjs/common").CustomDecorator<string>;