feat(samples): [Cache Tracing 5] Add Caffeine cache to Spring Boot sample#5171
Closed
adinauer wants to merge 1 commit intofeat/cache-tracing-samplefrom
Closed
feat(samples): [Cache Tracing 5] Add Caffeine cache to Spring Boot sample#5171adinauer wants to merge 1 commit intofeat/cache-tracing-samplefrom
adinauer wants to merge 1 commit intofeat/cache-tracing-samplefrom
Conversation
Enable cache tracing in the Spring Boot 2/3 sample using Caffeine as an in-memory cache provider. No external infrastructure required. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. This PR will not appear in the changelog. 🤖 This preview updates automatically when you update the PR. |
Contributor
|
This was referenced Mar 9, 2026
Sentry Build Distribution
|
Contributor
Performance metrics 🚀
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Stack (Cache Tracing)
📜 Description
Adds Caffeine-backed caching to the Spring Boot 2/3 sample app to demonstrate cache tracing without external infrastructure (no Redis/Docker needed).
com.github.ben-manes.caffeine:caffeinedependency (version managed by Spring Boot BOM)@EnableCachingon the applicationsentry.enable-cache-tracing=trueand Caffeine cache spec inapplication.properties💡 Motivation and Context
The Spring Boot 4 sample uses
ConcurrentMapCacheManagerfor cache tracing. This PR adds a more realistic cache provider (Caffeine with TTL and size limits) to the Spring Boot 2/3 sample, while keeping it zero-infrastructure.💚 How did you test it?
/cache/) work with Caffeine as the backing store📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
#skip-changelog