Currently the implementation of method `setMetrics(boolean)` in class `io.agroal.springframework.boot.AgroalDataSource` is always invoking ``datasourceConfiguration.metricsEnabled(true) .
I think the correct implementation would be:
public void setMetrics(boolean metrics) { datasourceConfiguration.metricsEnabled(metrics); }