-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Register lwt collectors and pre-collectors #43
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
It would be good to add a couple of async collectors to the tests too, to check this is working.
Rebasing on master
will probably fix the CI problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CI tests are still failing. As I said before, you need to rebase to fix this.
I'd still be interested to know what you're planning to use this for. It would be useful for the changelog to explain why this was added.
8084118
to
1e0a1db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I pushed a few minor changes (such as checking that a metric isn't registered as both lwt and non-lwt). If you're happy with this, I think it's ready for merging.
CHANGES: - Add lwt collectors and pre-collectors (@killian-delarue, mirage/prometheus#43). Note that this is a temporary feature while we wait for OCaml 5 to be released, when this can be replaced by the use of effects. - Fix deprecations in Fmt 0.8.10 (@MisterDA, mirage/prometheus#36). - General build updates, upstream deprecations, etc (@talex5, mirage/prometheus#33 mirage/prometheus#34 mirage/prometheus#35 mirage/prometheus#40 mirage/prometheus#42).
CHANGES: - Add lwt collectors and pre-collectors (@killian-delarue, mirage/prometheus#43). Note that this is a temporary feature while we wait for OCaml 5 to be released, when this can be replaced by the use of effects. - Fix deprecations in Fmt 0.8.10 (@MisterDA, mirage/prometheus#36). - General build updates, upstream deprecations, etc (@talex5, mirage/prometheus#33 mirage/prometheus#34 mirage/prometheus#35 mirage/prometheus#40 mirage/prometheus#42).
CHANGES: - Add lwt collectors and pre-collectors (@killian-delarue, mirage/prometheus#43). Note that this is a temporary feature while we wait for OCaml 5 to be released, when this can be replaced by the use of effects. - Fix deprecations in Fmt 0.8.10 (@MisterDA, mirage/prometheus#36). - General build updates, upstream deprecations, etc (@talex5, mirage/prometheus#33 mirage/prometheus#34 mirage/prometheus#35 mirage/prometheus#40 mirage/prometheus#42).
This pull request adds the possibility to register lwt functions as
collectors
andpre-collectors
.Fixes #41.