SkeLLLa/fastify-metrics

Custom labels

Closed this issue · 5 comments

Only a predefined set of labels is supported: method, status and route.
Sometimes it would be useful to support "custom" labels set, so that we could:

  • Decorate a request with the info we want to get from the label.
  • Get the info from the request to populate the custom label.

This would allow to support more fine-grained metrics.

really +1 for that

Yes, it might be a good feature, wanna work on PR for this?

Yeah I'll try (never actively contributed to open source project before 😅)

Created PR for this: #80

Looks like this one is resolved. Feel free to reopen if you need something extra.