| 22 | * Prometheus middleware function with register property |
| 23 | */ |
| 24 | export interface PrometheusMiddleware extends MiddlewareFunction { |
| 25 | /** Prometheus metrics registry */ |
| 26 | register: { |
| 27 | /** Content type for metrics endpoint */ |
| 28 | contentType: string; |
| 29 | /** Get metrics as a promise */ |
| 30 | metrics(): Promise<string>; |
| 31 | }; |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Middleware that sets async protection flag |
nothing calls this directly
no outgoing calls
no test coverage detected