Skip to content

docs(span-links): Add server_request link type - #20112

Open
s1gr1d wants to merge 1 commit into
masterfrom
sig/span-link-type-server-request
Open

s1gr1d wants to merge 1 commit into
masterfrom
sig/span-link-type-server-request

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Adds a link type for a page load span that could not continue the trace of the server request that rendered its document.

With streamed HTML, the trace context can arrive after the page load span started. For example, a prerendered shell is served first and the dynamic part, which carries the sentry-trace meta tag, streams in later. A started span cannot move to another trace, so the SDK links it to the server request instead. Without a type, the link shows up in Sentry with no meaning attached. The JavaScript SDK sets it in getsentry/sentry-javascript#25142.

Refs getsentry/sentry-javascript#25142

Conventions PR: getsentry/sentry-conventions#738

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
develop-docs Ready Ready Preview Oct 20, 2026 2:53pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-docs Ignored Ignored Preview Oct 20, 2026 2:53pm UTC

Request Review

@github-actions github-actions Bot added sdk-develop-docs PRs touching develop-docs/sdk Priority: Normal Docs review has no urgent deadline labels Oct 20, 2026
@s1gr1d
s1gr1d marked this pull request as ready for review October 20, 2026 15:11
@s1gr1d
s1gr1d requested review from Lms24 and nicohrubec October 20, 2026 15:12
@cursor

cursor Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Rollouts skipped this pull request: Documentation-only change in an application repo (MDX in develop-docs) that does not ship to a deployed site.

Mention @change-monitor in a comment to monitor it anyway.

s1gr1d added a commit to getsentry/sentry-javascript that referenced this pull request Oct 20, 2026
Without a type, the link from a pageload to the server request whose trace
context arrived too late shows up in Sentry with no meaning. The type is
documented in getsentry/sentry-docs#20112.

@nicohrubec nicohrubec 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.

looks good to me but should we add this to conventions first?

@Lms24 Lms24 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.

+1 for adding this to conventions

@s1gr1d

s1gr1d commented Oct 21, 2026

Copy link
Copy Markdown
Member Author

Merged in conventions: getsentry/sentry-conventions#738

This branch was successfully deployed

1 active deployment
Preview – develop-docs — 9226309a Deployed Oct 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline sdk-develop-docs PRs touching develop-docs/sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants