1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/src
Nuno Góis 5253482f61
refactor: add typesafe wrappers for prom client metrics (#5969)
https://linear.app/unleash/issue/2-1856/add-typesafe-wrappers-over-prom-clients-metrics

As discussed on the latest knowledge sharing session, this adds typesafe
wrappers over prom client's metrics, requiring us to specify all the
configured labels for each metric.

This uses a functional approach and only exposes the methods that are
currently relevant to us, while also exposing the underlying instance of
the metric for an easy access if needed.

Since we often chain `labels` with `inc` in counters, this adds a
convenience `increment` method for counters which does both in a single
call.
2024-01-19 14:51:29 +00:00
..
lib refactor: add typesafe wrappers for prom client metrics (#5969) 2024-01-19 14:51:29 +00:00
mailtemplates Fix email template scheduled change conflict (#5957) 2024-01-19 14:57:00 +02:00
migrations feat: add primary keys to missing tables (#5943) 2024-01-18 13:52:51 +02:00
test chore: re use extract user methods (#5947) 2024-01-18 13:15:21 +01:00
migrator.ts feat: disable verbosity from db-migrate (#3301) 2023-03-13 10:12:43 +01:00
server-dev.ts Executive Dashboard page setup (#5949) 2024-01-18 12:32:25 +01:00
server.ts Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00