Uploaded image for project: 'Agroal'
  1. Agroal
  2. AG-198

[spring] agroalDataSource setMetrics always enable metrics

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.17, 2.1
    • 1.16, 2.0
    • spring
    • None
    • False
    • None
    • False

      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);
      }
      

       

       

            lbarreiro-1 Luis Barreiro
            oscarburgos-martin Óscar Burgos (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: