Skip to content

docs(develop): Broaden no_parent_span client report reason - #20572

Closed
sentry-junior[bot] wants to merge 2 commits into
masterfrom
szokeasaurusrex/no-parent-span-span-end-2
Closed

sentry-junior[bot] wants to merge 2 commits into
masterfrom
szokeasaurusrex/no-parent-span-span-end-2

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Broadens the no_parent_span discard reason to also cover spans that are dropped at span end. The case that prompted this: transaction-based SDKs drop child spans that finish after their transaction was sent. No existing reason fits that case, and SDKs currently handle it differently (JS uses invalid, Python uses buffer_overflow). We discussed this in the SDK team channel.

New wording: "Span was not started or was dropped because no active parent span or transaction was present at span start or end."

The wording only describes why a span was dropped. It doesn't imply that every span without a parent gets dropped (in span streaming, spans without a parent become segments). The reason is already registered in Snuba and the frontend, so only the spec needs to change. This bumps the spec to 1.26.0 and sets the discard-reasons section's since to 1.26.0, following the spec lifecycle.

This replaces #20571, which stopped picking up new pushes to its branch.

Refs getsentry/sentry-rust#1397

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+

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

via @szokeasaurusrex.

--

View Session [Sentry]

sentry-junior Bot and others added 2 commits November 5, 2026 15:56
@vercel

vercel Bot commented Nov 5, 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 Nov 5, 2026 4:10pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-docs Ignored Ignored Preview Nov 5, 2026 4:10pm UTC

Request Review

@cursor

cursor Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Getting ready to monitor this change · Rollout details

Status Service Environment
⏳ Getting ready to monitor this change

@github-actions github-actions Bot added sdk-develop-docs PRs touching develop-docs/sdk Priority: Normal Docs review has no urgent deadline labels Nov 5, 2026
@szokeasaurusrex

Copy link
Copy Markdown
Member

@Lms24 convinced me that this is not a good idea, and that we should instead use invalid for the case of spans ending after their transactions.

This branch was successfully deployed

1 active deployment
Preview – develop-docs — 3e17f751 Deployed Nov 5, 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.

1 participant