Ehcache Integration

Learn how to trace Ehcache cache operations with Sentry.

Sentry can trace cache operations performed by Ehcache, a widely-used Java caching library. Cache spans appear in Sentry's Caches dashboard.

If you're using Ehcache 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").