Join us live to discuss The Three Jobs of Every Observability Platform on September 21st Is a metrics dashboard "enough" observability? Join us next week to discuss The Three Jobs of Every Observability Platform
Instrumentation/Supported Frameworks

Caffeine Instrumentation #

Since 2.2.2

Overview #

The Caffeine instrumentation adds tracing for Caffeine and Caffeine-backed synchronous clients. Metrics are gathered using the KamonStatsCounter, which needs to be added manually. When building a cache, add it by calling the recordStats method:

        .recordStats(() -> new KamonStatsCounter("cache_name"))

Manual Installation #

In case you are not using the Kamon Bundle, add the dependency below to your build.

libraryDependencies += "io.kamon" %% "kamon-caffeine" % "2.5.8"


implementation 'io.kamon:kamon-caffeine_2.13:2.5.8'

You must start your application with the instrumentation agent for this module to work properly.

On this article
Kamon APM Logo
Get Application-level Observability with Kamon APM
  • Correlated metrics and traces
  • Metric dashboards
  • Alerting rules and notifications
  • OpenTelemetry and Micrometer compatible
Try Kamon APM
Start with a FREE developer account