Caffeine Integration
Learn how to trace Caffeine cache operations with Sentry.
Sentry can trace cache operations performed by Caffeine, the high-performance in-memory caching library for Java. Cache spans appear in Sentry's Caches dashboard.
If you're using Caffeine as your Spring Boot cache provider, cache tracing is built into the Sentry Spring Boot starter. Enable it in your configuration:
Copied
sentry.enable-cache-tracing=true
sentry.traces-sample-rate=1.0
All @Cacheable, @CachePut, and @CacheEvict operations will automatically produce Sentry spans — no additional dependencies or code changes required.
See enableCacheTracing for more details on this option.
Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").