ref(jcache): [Cache Tracing 16] Merge startSpan helpers into shared core method#5205
Draft
adinauer wants to merge 1 commit intoref/cache-tracing-method-specific-opsfrom
Draft
Conversation
Replace the separate startSpanForKeys helper with a startSpan(Set, String) overload, unifying the two span creation methods under the same name. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Mar 18, 2026
Draft
fix(spring): [Cache Tracing 14] Fix cache hit detection for typed get and fix jcache docs link
#5203
Draft
Member
Author
|
@sentry review |
Member
Author
|
cursor review |
384cb3e to
0a32614
Compare
This was referenced Mar 18, 2026
Draft
Draft
Draft
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
In
SentryJCacheWrapper, thestartSpanandstartSpanForKeyshelpers had duplicated span creation logic. This PR extracts the shared logic into a single core methodstartSpan(String operationName, String description, List<String> cacheKeys), and turns the existingstartSpan(Object key, ...)andstartSpanForKeys(Set<?> keys, ...)into thin convenience wrappers that convert their arguments and delegate.Also includes Spotless formatting fixes for the Spring wrapper
startSpanmethods from the previous PR.💡 Motivation and Context
Reduces code duplication in the JCache wrapper's span helper methods.
💚 How did you test it?
SentryJCacheWrapperTesttests pass📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
#skip-changelog