Skip to content

Commit

Permalink
chore: normalize graphql path in metrics (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Sep 17, 2023
1 parent a7dbc5b commit d86c8dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helpers/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d86c8dc

Please sign in to comment.