fastify-metrics
Advanced tools
Comparing version 10.3.0 to 10.3.1
@@ -35,3 +35,5 @@ "use strict"; | ||
// Setup route label getter | ||
const defaultGetRouteLabel = (request) => request.routeConfig.statsId ?? request.routerPath ?? this.routeFallback; | ||
const defaultGetRouteLabel = (request) => request.routeOptions.config.statsId ?? | ||
request.routeOptions.url ?? | ||
this.routeFallback; | ||
this.getRouteLabel = | ||
@@ -38,0 +40,0 @@ this.options.routeMetrics.overrides?.labels?.getRouteLabel ?? |
@@ -45,4 +45,4 @@ /** | ||
*/ | ||
declare const _default: import("fastify").FastifyPluginAsync<Partial<IMetricsPluginOptions>, import("fastify").RawServerDefault, import("fastify").FastifyTypeProviderDefault>; | ||
declare const _default: import("fastify").FastifyPluginAsync<Partial<IMetricsPluginOptions>, import("fastify").RawServerDefault, import("fastify").FastifyTypeProviderDefault, import("fastify").FastifyBaseLogger>; | ||
export default _default; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"$schema": "https://json.schemastore.org/package.json", | ||
"name": "fastify-metrics", | ||
"version": "10.3.0", | ||
"version": "10.3.1", | ||
"description": "Prometheus metrics exporter for Fastify", | ||
@@ -73,3 +73,3 @@ "keywords": [ | ||
"eslint-plugin-tsdoc": "^0.2.17", | ||
"fastify": "^4.9.2", | ||
"fastify": "^4.23.1", | ||
"jest": "^29.2.0", | ||
@@ -76,0 +76,0 @@ "prettier": "^2.7.1", |
@@ -226,3 +226,3 @@ # fastify-metrics | ||
See [changelog](CHANGELOG.md). | ||
See [changelog](docs/CHANGELOG.md). | ||
@@ -229,0 +229,0 @@ <sub>[Back to top](#toc)</sub> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
53286
15
704