As part of the JDBC instrumentation, Kamon can automatically gather performance metrics out of Hikari connection pools and use the pool information when creating Spans from Statements execution.
All Hikari connection pools will get the following metrics:
In case you are not using the Kamon Bundle, add the dependency below to your build:
libraryDependencies += "io.kamon" %% "kamon-jdbc" % "2.5.9"
<dependency>
<groupId>io.kamon</groupId>
<artifactId>kamon-jdbc_2.13</artifactId>
<version>2.5.9</version>
</dependency>
implementation 'io.kamon:kamon-jdbc_2.13:2.5.9'
You must start your application with the instrumentation agent for this module to work properly.