Open swc-jk opened 1 month ago
Currently when registeredRoutesOnly: false is set, only the methodBlacklist is used for blacklisting. It would be nice to also be able to use routeBlacklist to ignore endpoints like /ping or /health. https://github.com/SkeLLLa/fastify-metrics/blob/35efa3593483be4b15da01238e41104bdf999f4b/src/fastify-metrics.ts#L337
registeredRoutesOnly: false
methodBlacklist
routeBlacklist
/ping
/health
Hi. Would you like to submit a PR for this issue?
Currently when
registeredRoutesOnly: false
is set, only themethodBlacklist
is used for blacklisting. It would be nice to also be able to userouteBlacklist
to ignore endpoints like/ping
or/health
. https://github.com/SkeLLLa/fastify-metrics/blob/35efa3593483be4b15da01238e41104bdf999f4b/src/fastify-metrics.ts#L337