To use this library, add one of the following starters to your Spring Boot application's classpath. The library will automatically wrap your existing DataSources (auto-configured or custom) with the chosen proxy provider.
P6Spy Starter
Use this to intercept and log SQL queries, including Connection, Statement, and ResultSet method calls.
Datasource Proxy Starter
Use this to intercept all queries and method calls with detailed logging (DEBUG for all queries, WARN for slow queries).
FlexyPool Starter
Use this to add connection pool metrics (JMX, Codahale, Dropwizard) and flexible pool size adjustment strategies.
Note: If using a connection pool other than HikariCP, you must manually add a PoolAdapter for your specific pool.
### P6Spy (Groovy)
implementation("com.github.gavlyukovskiy:p6spy-spring-boot-starter:${version}")
### Datasource Proxy (Groovy)
implementation("com.github.gavlyukovskiy:datasource-proxy-spring-boot-starter:${version}")
### FlexyPool (Groovy)
implementation("com.github.gavlyukovskiy:flexy-pool-spring-boot-starter:${version}")