Skip to content

fix(trace-view): Open the render trace at the render start - #131426

Merged
s1gr1d merged 6 commits into
masterfrom
sig/trace-view-render-age
Nov 19, 2026
Merged

s1gr1d merged 6 commits into
masterfrom
sig/trace-view-render-age

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

"Open trace" in the Server rendering section of the pageload drawer now opens the trace of a reused render, also when the render is more than 1.5 days older than the pageload. Before, the link sent the pageload start as timestamp. The trace query searches only 1.5 days around that time, so the link opened an empty trace for old pre-rendered pages.

The SDKs now set page.server_rendering.age on the pageload span: the seconds from the start of the reused render to the start of the pageload (getsentry/sentry-conventions#799, getsentry/sentry-javascript#26397). The link sends pageload start − age, which is the start of the linked render span. If the age is missing (older SDKs) or negative, the link sends the pageload start, as before. The request render (server_request link) does not change.

When the render start is older than the span retention, the section shows "Past N-day retention" instead of a link. This uses the same check as the Cache Lifecycle section.

"Open trace" in the Server rendering section sent the pageload start as the
trace timestamp. The trace query searches only 1.5 days around that time, so
it found no trace for a render that is older.

SDKs now set page.server_rendering.age on the pageload span. The link now
sends the pageload start minus that age. Without the age (older SDKs), it
sends the pageload start, as before. When the render is older than the span
retention, the section shows a muted text instead of a link.
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 17, 2026
@s1gr1d
s1gr1d marked this pull request as ready for review November 17, 2026 10:06
@s1gr1d
s1gr1d requested a review from a team as a code owner November 17, 2026 10:06

@chargome chargome left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

Other packages on master still depend on @sentry/conventions 0.33.0.
The bump to 0.34.0 removed that entry, so pnpm install --frozen-lockfile
failed in CI.
@s1gr1d
s1gr1d merged commit d74fabb into master Nov 19, 2026
87 checks passed
@s1gr1d
s1gr1d deleted the sig/trace-view-render-age branch November 19, 2026 11:56

This branch was successfully deployed

1 active deployment
Preview — 926de0c9 Deployed Nov 19, 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.

3 participants