| 4 | * Prometheus metrics configuration for middleware |
| 5 | */ |
| 6 | export interface PrometheusMiddlewareConfig { |
| 7 | /** Include HTTP method in metrics */ |
| 8 | includeMethod?: boolean; |
| 9 | /** Include request path in metrics */ |
| 10 | includePath?: boolean; |
| 11 | /** Include status code in metrics */ |
| 12 | includeStatusCode?: boolean; |
| 13 | /** Include default metrics */ |
| 14 | includeUp?: boolean; |
| 15 | /** Histogram buckets for request duration */ |
| 16 | buckets?: number[]; |
| 17 | /** Custom labels to add to metrics */ |
| 18 | customLabels?: Record<string, string>; |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Prometheus middleware function with register property |
nothing calls this directly
no outgoing calls
no test coverage detected