canonical / hotsos

Software analysis toolkit. Define checks in high-level language and leverage library to perform analysis of common Cloud applications.
Apache License 2.0
30 stars 37 forks source link

Remove need for module level global searcher #889

Closed dosaboy closed 1 month ago

dosaboy commented 1 month ago

By allowing the event handlers in plugin_extensions.openstack.agent.events we remove the final constraint that now allows using a context manager to manage a global searcher object that is shared across all parts in a plugin. This is now shared with all implementations of YHanlderBase i.e. events and scenarios. A future patch will enable pre-loading scenario searches into the global searcher.