CHANGES:
Core/Lwt split:
-
Add a new
prometheus-lwtmetrics package.
(@avsm @mtelvers @talex5 #66 #67 #68 #69, reviewed by @dinosaure)This release is not a breaking change, but instead prepares for
deprecation of Lwt in the core package so a future release can remove Lwt
from theprometheuscore. Users of the core's Lwt-typed functions
should migrate toPrometheus_lwtnow. Code using the new interface will
keep working unchanged in future releases. -
Add synchronous variants of the timing helpers to the core. Metric recording
is synchronous and these will become the only core timing helpers once the
Lwt-typed ones move toprometheus-lwt. -
The replacement time-based functions no longer take a
gettimeargument.
Instead, this is provided once by the newPrometheus.initfunction,
which is called automatically when usingPrometheus_unix.
To migrate existing code, add a dep on prometheus-lwt and rename following
the deprecation warnings from the compiler.
Bug fixes:
- Format floats with
%.17g(@samoht @talex5 #62).
The text exposition formatter printed metric values with%f,
so any magnitude below ~5e-7 was reported as 0.000000.
Other changes: