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.8"
<dependency> <groupId>io.kamon</groupId> <artifactId>kamon-jdbc_2.13</artifactId> <version>2.5.8</version> </dependency>
You must start your application with the instrumentation agent for this module to work properly.
Your first step towards Kamon APM is conversation with Kamon's lead developer, Ivan. He'll help you figure out if Kamon APM is the right tool for your team and personally guide you through the initial setup and next steps. Here he is: