Skip to content

feat(spring): Add cache tracing instrumentation for Spring Boot 4#5161

Closed
adinauer wants to merge 0 commit intomainfrom
feat/cache-tracing
Closed

feat(spring): Add cache tracing instrumentation for Spring Boot 4#5161
adinauer wants to merge 0 commit intomainfrom
feat/cache-tracing

Conversation

@adinauer
Copy link
Member

@adinauer adinauer commented Mar 5, 2026

📜 Description

This is the collection PR for the Cache Tracing stack. It contains the full diff of all changes. Individual PRs for review:

PR Stack (Cache Tracing)

  • #5162 — Add SentryCacheWrapper and SentryCacheManagerWrapper
  • #5163 — Add enableCacheTracing option
  • #5164 — Add BeanPostProcessor and auto-configuration

Adds auto-instrumentation for Spring's Cache abstraction, producing cache.get, cache.put, cache.remove, and cache.flush spans per the Sentry cache module spec.

  • SentryCacheWrapper / SentryCacheManagerWrapper wrap Spring's Cache / CacheManager interfaces
  • SentryCacheBeanPostProcessor auto-wraps all CacheManager beans
  • Gated behind sentry.enable-cache-tracing=true (opt-in, default false)
  • Target: Spring Boot 4 only (sentry-spring-7 + sentry-spring-boot-4 modules)

💡 Motivation and Context

Closes #4120

💚 How did you test it?

See individual PRs for test details.

📝 Checklist

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • No breaking change or entry added to the changelog.

@adinauer
Copy link
Member Author

adinauer commented Mar 5, 2026

PR Stack (Cache Tracing)

  • #5161Collection PR (full diff → main)
  • #5162 — Add SentryCacheWrapper and SentryCacheManagerWrapper
  • #5163 — Add enableCacheTracing option
  • #5164 — Add BeanPostProcessor and auto-configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Java SDK Cache instrumentation

1 participant