SkeLLLa / fastify-metrics

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

Backport customLabels implementation for version 9.x #104

Open ncrypthic opened 4 months ago

ncrypthic commented 4 months ago

Hi! First, wanna say great work for implementing automated metrics in fastify.

Currently we're trying to use fastify-metrics version 9.x with nestjs. Due to some limitation we cannot upgrade nestjs to latest version. When exploring our usecase, we cannot add custom labels with existing implementation while we can do it in version 10.x or above.

Is it possible to backport customLabels functionality in version 9.x? Wouldn't mind to raise a PR here.

SkeLLLa commented 3 months ago

Sure, if you add PR please tag me and we'll try figure out how to merge and publish it.