Skip to content

docs(attachments): Allow name-only runtime frames in flame graphs - #20940

Open
alwx wants to merge 1 commit into
masterfrom
alwx/docs/20938
Open

alwx wants to merge 1 commit into
masterfrom
alwx/docs/20938

Conversation

@alwx

@alwx alwx commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Closes #20938.

The flame graph attachment spec required every native frame to keep instruction_addr. The React Native SDK builds JS hang flame graphs from Hermes sampling profiler traces (getsentry/sentry-react-native#7042). Hermes reports built-in and JSI host function frames, such as [Native] jsonStringify, with only a name and no address. These are logical runtime frames, not captured machine frames, so SDKs should not invent addresses for them. Relay and the backend already accept frames with only a function.

  • The instruction_addr rule now applies to native frames captured from machine stacks.
  • Frames that a runtime reports without a native address MAY omit instruction_addr and contain only function.
  • Bumped the attachments spec to 1.8.1 and added a changelog entry.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.
Select exactly one option. For deadlines, replace YYYY-MM-DD with the due date. You can update this information later by editing the PR description.

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: 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 supplied a deadline.

Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • 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

The flame graph spec required every native frame to keep instruction_addr. The React Native SDK builds JS hang flame graphs from Hermes sampling profiler traces, and Hermes reports built-in and JSI host function frames with only a name and no address. These are logical runtime frames, not captured machine frames, and SDKs should not invent addresses for them. Relay and the backend already accept frames with only a function.

The rule now applies to native frames captured from machine stacks, and frames that a runtime reports without a native address may omit instruction_addr. The spec version moves to 1.8.1.

Closes #20938
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
develop-docs Error Error Nov 23, 2026 11:57am UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-docs Ignored Ignored Nov 23, 2026 11:57am 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 Nov 23, 2026
@alwx
alwx marked this pull request as ready for review November 23, 2026 12:01
@cursor

cursor Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Getting ready to monitor this change · Rollout details

Status Service Environment
⏳ Getting ready to monitor this change

This branch had an error being deployed

1 failed deployment
Preview – develop-docs — d7e1dc7b Deployed Nov 23, 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.

Flame graph spec: allow name-only runtime frames without instruction_addr

1 participant