I want to enable metrics collection for R2dbc ConnectionPool, have checked the code of org.springframework.boot.autoconfigure.r2dbc.ConnectionFactoryConfigurations.PoolConfiguration and it looks like neither metricsRecorder nor a customizer can be auto-configured on a ConnectionPoolConfiguration.Builder used to build a ConnectionFactory.

this is per Spring Boot 3.2.5. Can this be addressed? or is there any other recommended way to achieve such effect?

Comment From: philwebb

I think this is a duplicate of #40010. I'm afraid for now the only option is to define your own ConnectionPool bean.