express-prom-bundle
Advanced tools
Comparing version 6.1.0 to 6.2.0
{ | ||
"name": "express-prom-bundle", | ||
"version": "6.1.0", | ||
"version": "6.2.0", | ||
"description": "express middleware with popular prometheus metrics in one bundle", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -18,3 +18,3 @@ // TypeScript Version: 2.8 | ||
type NormalizeStatusCodeFn = (res: Response) => number | string; | ||
type TransformLabelsFn = (labels: Labels, req: Request, res: Response) => Labels; | ||
type TransformLabelsFn = (labels: Labels, req: Request, res: Response) => void; | ||
@@ -34,2 +34,3 @@ interface Opts { | ||
metricsPath?: string; | ||
httpDurationMetricName?: string; | ||
promClient?: { collectDefaultMetrics?: DefaultMetricsCollectorConfiguration }; | ||
@@ -40,3 +41,2 @@ promRegistry?: Registry; | ||
transformLabels?: TransformLabelsFn; | ||
httpDurationMetricName?: string; | ||
@@ -52,2 +52,6 @@ // https://github.com/disjunction/url-value-parser#options | ||
interface Middleware extends RequestHandler { | ||
metricsMiddleware: RequestHandler; | ||
} | ||
const normalizePath: NormalizePathFn; | ||
@@ -64,2 +68,2 @@ const normalizeStatusCode: NormalizeStatusCodeFn; | ||
declare function express_prom_bundle(opts: express_prom_bundle.Opts): RequestHandler; | ||
declare function express_prom_bundle(opts: express_prom_bundle.Opts): express_prom_bundle.Middleware; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20764
237