Skip to content

feat(trace-view): Handle missing cache origin spans in the cache lifecycle section - #126442

Merged
s1gr1d merged 2 commits into
masterfrom
sig/cache-lifecycle-improvements
Oct 6, 2026
Merged

s1gr1d merged 2 commits into
masterfrom
sig/cache-lifecycle-improvements

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Oct 5, 2026

Copy link
Copy Markdown
Member

Improves the "Cache filled" row in the span drawer:

  • Uses the new api.trace-view.cache-origin referrer (from feat(snuba): Add api.trace-view.cache-origin referrer #126312)
  • Shows a two-line skeleton while the origin span loads (avoids "jumping" of Button)
  • Skips the request and hides the button when the origin trace was not sampled or is older than span retention
  • On request errors, shows "Span preview unavailable" but keeps the button (404 often means the span is in another project, and the trace view can still find it there)
  • Makes TraceItemResponseLink.sampled optional, because it is

Linear: https://linear.app/getsentry/issue/JSSDK-32/use-cache-referrer-in-frontend
Linear: https://linear.app/getsentry/issue/JSSDK-35/handle-missing-cache-origin-spans-in-the-frontend

@s1gr1d
s1gr1d requested review from a team as code owners October 5, 2026 12:45
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 5, 2026
@s1gr1d
s1gr1d requested a review from nsdeschenes October 5, 2026 12:45
The component says "span retention", but the test expects the old copy.

@nsdeschenes nsdeschenes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, loving the use of ternaries over double ampersands 🙏

@s1gr1d
s1gr1d merged commit bb7d055 into master Oct 6, 2026
92 of 95 checks passed
@s1gr1d
s1gr1d deleted the sig/cache-lifecycle-improvements branch October 6, 2026 13:53

This branch was successfully deployed

1 active deployment
Preview — 5437342d Deployed Oct 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants