SkeLLLa / fastify-metrics

Prometheus metrics exporter for Fastify
https://savelife.in.ua/en/donate-en/
MIT License
99 stars 33 forks source link

feat: support regular expressions in routeBlacklist values #98

Closed dmuharemagic closed 10 months ago

dmuharemagic commented 11 months ago

FIrst of all, thanks for the library :)

I thought it would be useful to support regular expressions in routeBlacklist property values. One might need to blacklist a set of subpaths under a base path, e.g. when using @fastify/swagger-ui it would be useful to blacklist all of the exposed subpaths from being collected (JSON documentation, YAML documentation, and so on).

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (0730c2a) 98.82% compared to head (1f12dd7) 98.85%. Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #98 +/- ## ========================================== + Coverage 98.82% 98.85% +0.02% ========================================== Files 2 2 Lines 170 174 +4 Branches 70 73 +3 ========================================== + Hits 168 172 +4 Misses 1 1 Partials 1 1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

SkeLLLa commented 10 months ago

Thanks for contribution! And sorry for late review, but it should be released soon.

github-actions[bot] commented 10 months ago

:tada: This PR is included in version 10.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: