Currently, the logic inside DataSourceHealthContributorAutoConfiguration auto-configuration is based solely on instanceof and does not account for situations where someone has added a proxy/wrapper around AbstractRoutingDataSource through BeanPostProcessor or other ways.
Comment From: snicoll
Thanks again @nosan!