Skip to content

feat(snuba): Add api.trace-view.cache-origin referrer - #126312

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

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

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Oct 2, 2026

Copy link
Copy Markdown
Member

@s1gr1d
s1gr1d requested review from a team as code owners October 2, 2026 11:06
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 2, 2026
@s1gr1d
s1gr1d merged commit af49e6f into master Oct 2, 2026
87 checks passed
@s1gr1d
s1gr1d deleted the sig/referrer-cache-lifecycle branch October 2, 2026 12:42
s1gr1d added a commit that referenced this pull request Oct 6, 2026
…cycle section (#126442)

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

- Uses the new `api.trace-view.cache-origin` referrer (from
#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
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