Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kork-sql): Use class variables for hikari pool metrics
The SQL pool gauge metrics are disappearing due to the adhoc gauge objects being garbage collected. This change fixes the pool metrics to be class variables instead and hence avoid being garbage collected. The micrometer docs also alludes to this issue: https://micrometer.io/docs/concepts#_why_is_my_gauge_reporting_nan_or_disappearing
- Loading branch information