smallrye / smallrye-health

Home Page:https://smallrye.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add property for context propagation to the health checks

xstefank opened this issue · comments

Because we use Mutiny Unis to invoke health checks, the context (CDI for instance) is not propagated on each subscription to the Uni but only at the time the Uni is created. So in this sense, it is impossible to use for instance RequestScoped beans. The solution would be to add an option to recreate health checks unis on every health call. We will make this switchable with config property.