---
title: "Ehcache Integration"
description: "Learn how to trace Ehcache cache operations with Sentry."
url: https://docs.sentry.io/platforms/java/guides/spring-boot/integrations/ehcache/
---

# Ehcache Integration | Sentry for Spring Boot

Sentry can trace cache operations performed by [Ehcache](https://www.ehcache.org/), a widely-used Java caching library. Cache spans appear in Sentry's [Caches dashboard](https://sentry.io/orgredirect/organizations/:orgslug/insights/backend/caches/).

## [Spring Boot](https://docs.sentry.io/platforms/java/guides/spring-boot/integrations/ehcache.md#spring-boot)

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:

```properties
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`](https://docs.sentry.io/platforms/java/guides/spring-boot/configuration/options.md#enableCacheTracing) for more details on this option.
