Skip to content

Comments

docs(sdk): migrate traces, spans, and hub/scope specs to standard format#16496

Draft
stephanie-anderson wants to merge 1 commit intomasterfrom
sanderson/spec-format-traces-spans
Draft

docs(sdk): migrate traces, spans, and hub/scope specs to standard format#16496
stephanie-anderson wants to merge 1 commit intomasterfrom
sanderson/spec-format-traces-spans

Conversation

@stephanie-anderson
Copy link
Contributor

DESCRIBE YOUR PR

Apply spec format (versioning, SpecSection, changelogs) to the traces/, spans/, and hub/scope sections of the SDK developer docs. This is the largest batch in the spec format migration series.

Changes

New specs created:

  • sdk/foundations/data-model/hub.mdx — deprecated Hub spec (superseded by Scopes)
  • sdk/telemetry/transactions.mdx — deprecated Transactions spec (superseded by Spans)

Major rewrites:

  • traces/index.mdx — rewritten as the Trace spec (trace-level concepts only, transaction content extracted)
  • spans/index.mdx — consolidated from 8 subpages into one comprehensive spec
  • scopes.mdx — transformed to v2.11.0 with deprecated v1 SpecSection

Spec format added to 31 existing files:

  • 7 traces/ standalone specs (backpressure, trace-origin, sql-transactions, frames-delay, TTID/TTFD, OTLP, TwP)
  • 4 traces/ medium specs (DSC, span-links, ui-event-transactions, opentelemetry)
  • 3 traces/ reference specs (span-operations, span-data-conventions, trace-propagation-cheat-sheet)
  • 9 traces/modules/ specs (ai-agents, app-starts, assets, caches, queries, queues, requests, screen-loads, web-vitals)

Structural changes:

  • All specs restructured to follow Overview → Behavior → Wire Format → Public API → Changelog
  • distributed-tracing/ folded into traces/index.mdx with redirect
  • 8 spans/ subpages merged into spans/index.mdx with redirects
  • All cross-references updated

Version derivation

Spec versions derived from git commit history analysis — each meaningful feature commit = minor bump, breaking changes = major bump, infrastructure commits skipped.

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.)
  • Other deadline
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

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

Co-Authored-By: Claude noreply@anthropic.com

Apply spec format (versioning, SpecSection, changelogs) to traces/ (26 files),
spans/ (consolidated into 1), and hub/scope (2 files). Create new Hub (deprecated)
and Transactions (deprecated) specs. Restructure all specs to follow the standard
Overview → Behavior → Wire Format → Public API → Changelog pattern.

- Add spec metadata (spec_id, spec_version, spec_status, spec_changelog) to all files
- Wrap requirement sections in SpecSection components with version tracking
- Create sdk/foundations/data-model/hub.mdx (deprecated, superseded by scopes)
- Create sdk/telemetry/transactions.mdx (deprecated, superseded by spans)
- Rewrite traces/index.mdx as the Trace spec (trace-level concepts only)
- Consolidate 8 spans/ subpages into spans/index.mdx
- Fold distributed-tracing/ into traces/index.mdx
- Add redirects for all moved/merged pages
- Update all cross-references

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 21, 2026

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

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment Feb 21, 2026 6:15pm
sentry-docs Ready Ready Preview, Comment Feb 21, 2026 6:15pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant