Skip to content

Commit 9b3c76e

Browse files
committed
fix: bump fastify-metrics
1 parent bc54900 commit 9b3c76e

File tree

3 files changed

+38
-22
lines changed

3 files changed

+38
-22
lines changed

package-lock.json

Lines changed: 34 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"cpy-cli": "^4.1.0",
5555
"crypto-js": "^4.0.0",
5656
"fastify": "^4.8.1",
57-
"fastify-metrics": "^8.0.0",
57+
"fastify-metrics": "^10.0.0",
5858
"fastify-swagger": "^5.0.0",
5959
"jest": "^27.1.0",
6060
"npm-run-all": "^4.1.5",

src/server/admin-app.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import fastify, { FastifyInstance, FastifyServerOptions } from 'fastify'
22

3-
import _default = require('fastify-metrics')
3+
import FastifyMetrics from 'fastify-metrics'
44

55
export function build(opts: FastifyServerOptions = {}): FastifyInstance {
66
const app = fastify(opts)
7-
app.register(_default, {
7+
app.register(FastifyMetrics, {
88
endpoint: '/metrics',
9-
enableRouteMetrics: false,
10-
blacklist: ['nodejs_version_info', 'process_start_time_seconds'],
9+
routeMetrics: { enabled: false },
1110
})
1211
return app
1312
}

0 commit comments

Comments
 (0)