Skip to content

feat(spring): Cache Tracing#5165

Draft
adinauer wants to merge 1 commit intomainfrom
feat/cache-tracing
Draft

feat(spring): Cache Tracing#5165
adinauer wants to merge 1 commit intomainfrom
feat/cache-tracing

Conversation

@adinauer
Copy link
Member

@adinauer adinauer commented Mar 5, 2026

Collection PR for the Cache Tracing stack. Squash-merge this once all stack PRs are merged.

PR Stack (Cache Tracing)

  • #5162 — Add SentryCacheWrapper and SentryCacheManagerWrapper
  • #5163 — Add enableCacheTracing option
  • #5164 — Add BeanPostProcessor and auto-configuration
  • #5167 — Add cache tracing e2e sample

📜 Description

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.

💡 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.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (spring) Cache Tracing by adinauer in #5165

Bug Fixes 🐛

  • (android) Add filterTouchesWhenObscured to prevent Tapjacking by abhishek-900 in #5155
  • (screenshot) Add dontwarn replay rules to sentry-android-core by romtsn in #5153
  • (sessions) Finalize previous session even when auto session tracking is disabled by romtsn in #5154

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

### Features

- Cache Tracing ([#5165](https://github.com/getsentry/sentry-java/pull/5165))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description or adding a skip-changelog label.

Generated by 🚫 dangerJS against 7735a81

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