From d86c8dcdef111907d0aa28ca9d5579065e7ea8a7 Mon Sep 17 00:00:00 2001 From: Wan <495709+wa0x6e@users.noreply.github.com> Date: Sun, 17 Sep 2023 20:59:17 +0900 Subject: [PATCH] chore: normalize graphql path in metrics (#674) --- src/helpers/metrics.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/metrics.ts b/src/helpers/metrics.ts index c95e15d5..fbe6a59c 100644 --- a/src/helpers/metrics.ts +++ b/src/helpers/metrics.ts @@ -33,7 +33,8 @@ export default function initMetrics(app: Express) { init(app, { normalizedPath: [ ['^/api/scores/.+', '/api/scores/#id'], - ['^/api/spaces/([^/]+)(/poke)?$', '/api/spaces/#key$2'] + ['^/api/spaces/([^/]+)(/poke)?$', '/api/spaces/#key$2'], + ['^/graphql/?$', '/graphql'] ], whitelistedPath, errorHandler: (e: any) => capture(e)