Repository navigation
feat(trace-view): Add flag organizations:performance-trace-cache-lifecycle - #126184
Merged
Merged
Conversation
vgrozdanic
approved these changes
Oct 2, 2026
s1gr1d
added a commit
that referenced
this pull request
Oct 2, 2026
Adds a "Cache Lifecycle" section to the span details drawer for `cache.get` and `cache.put` spans. It shows the entry as a timeline: filled, hit/miss (this span), expires. On reads, it resolves the `cache_origin` span link, fetches the fill span, and shows the origin transaction, source file, and put duration, with a button that opens the origin span. Notes for review: - Gated behind `organizations:performance-trace-cache-lifecycle` (registered in #126184). - Reuses data we already have: the span's `cache.*` attributes and its span links. The only extra request fetches the linked fill span via `useTraceItemDetails`. - Workarounds for missing backend pieces, marked with a `TODO(cache)` comment: typed link attributes are dropped until #125749 is merged (single untyped link is treated as the origin) and the origin fetch borrows the log-details referrer. <img width="1837" height="860" alt="image" src="https://github.com/user-attachments/assets/7a8b6a19-746c-4ddf-8ebb-ada54770c39f" /> ### hit <img width="679" height="256" alt="image" src="https://github.com/user-attachments/assets/2e0a8058-237c-4abf-84d1-781c4acae503" /> ### miss <img width="693" height="118" alt="image" src="https://github.com/user-attachments/assets/b038d13e-8cd7-403b-9c2f-e1b73f703dc5" /> ### fill <img width="694" height="120" alt="image" src="https://github.com/user-attachments/assets/90b7f646-bfc1-4f1b-90e3-0ac207521fe2" /> | Linear: https://linear.app/getsentry/issue/JSSDK-28/add-cache-lifecycle-experience-to-the-product
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.
Needed for this: #126180
Flagpole (merge afterwards): https://github.com/getsentry/sentry-options-automator/pull/9985