Skip to content

feat(trace-view): Add flag organizations:performance-trace-cache-lifecycle - #126184

Merged
s1gr1d merged 1 commit into
masterfrom
sig/feature-flag-cache-lifecycle
Oct 2, 2026
Merged

s1gr1d merged 1 commit into
masterfrom
sig/feature-flag-cache-lifecycle

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

@s1gr1d
s1gr1d requested review from jamieQ and jjbayer October 1, 2026 14:59
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 1, 2026
@s1gr1d
s1gr1d merged commit b3bd39d into master Oct 2, 2026
90 checks passed
@s1gr1d
s1gr1d deleted the sig/feature-flag-cache-lifecycle branch October 2, 2026 08:35
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants