-
Notifications
You must be signed in to change notification settings - Fork 121
Optimise startup time #169
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
Conversation
Codecov ReportAttention: Patch coverage is
|
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.
Much better than the previous behavior.
448a146
to
0f56e41
Compare
0f56e41
to
0a5c595
Compare
This means that by default prometheus won't try to find all loaded modules implementing a behaviour, as this can be a very expensive operation (taking many seconds as has been seen in the field). If such behaviour was desired, it'd require explicitly setting `all_loaded` for instrumeters and collectors. The default is the most sane behaviour.
0a5c595
to
fb4a374
Compare
Please note that this a breaking change. |
Fair enough. So you mean this should be released as a 5.0? Can fix if that's the case. |
Ideally yes, otherwise it can be explicitly stated in the documentation and/or changelog. |
Done, released 5.0.0 and retired 4.13.0 👍🏽 Thanks for pointing that out! |
@NelsonVides can you also release a version of prometheus_ex that allows to use the new 5.0.0? |
@albertored would love to, but actually that repo needs a revamp, like creating new CI with all the latest versions of Erlang/Elixir, a new ex_doc, fixing the configs (Mix.Config is deprecated), etc. Maybe you want to contribute a PR cleaning up that one? Would be very appreciated! 😄 |
Fixes #81. Overrides #150.
Note too that this is already fixed in RabbitMQ for example, so it won't break its use-case: rabbitmq/rabbitmq-server@692b6f6
As in the last commit: