Skip to content

feat(profiling): New stack trace in span profile details#112559

Merged
scttcper merged 2 commits intomasterfrom
scttcper/new-stack-trace-span-profiles
Apr 9, 2026
Merged

feat(profiling): New stack trace in span profile details#112559
scttcper merged 2 commits intomasterfrom
scttcper/new-stack-trace-span-profiles

Conversation

@scttcper
Copy link
Copy Markdown
Member

@scttcper scttcper commented Apr 9, 2026

Uses the new stack trace component in the "Most Frequent Stacks in this Span" section, gated behind issue-details-new-stack-trace.

Also fixes a bug where maxDepth was applied to both allRows and rows in StackTraceProvider. Since allRows includes all system frames and rows only includes visible (in-app) frames, slicing both independently could lose in-app frames when system frames dominate the end of the stack.

before
Screenshot 2026-04-08 at 5 14 48 PM

after
image

`StackTraceProvider` was applying `maxDepth` to both `allRows` (the full frame list used as the render loop) and `rows` (the filtered visible frames). Since `allRows` includes all system frames and `rows` only includes in-app frames, `maxDepth` would slice different ranges and the intersection could lose in-app frames entirely.

Fix: only apply `maxDepth` to `rows`. `allRows` drives the render loop but frames outside `rows` are either null or Activity-hidden, so visible count is still capped.

Also uses the new stack trace in the "Most Frequent Stacks in this Span" section behind `issue-details-new-stack-trace`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 9, 2026
@scttcper scttcper marked this pull request as ready for review April 9, 2026 00:23
@scttcper scttcper requested review from a team as code owners April 9, 2026 00:23
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@scttcper scttcper merged commit 6654070 into master Apr 9, 2026
64 checks passed
@scttcper scttcper deleted the scttcper/new-stack-trace-span-profiles branch April 9, 2026 17:27
george-sentry pushed a commit that referenced this pull request Apr 9, 2026
Uses the new stack trace component in the "Most Frequent Stacks in this
Span" section, gated behind `issue-details-new-stack-trace`.

Also fixes a bug where `maxDepth` was applied to both `allRows` and
`rows` in `StackTraceProvider`. Since `allRows` includes all system
frames and `rows` only includes visible (in-app) frames, slicing both
independently could lose in-app frames when system frames dominate the
end of the stack.

before
<img width="605" height="501" alt="Screenshot 2026-04-08 at 5 14 48 PM"
src="https://github.com/user-attachments/assets/6b352cb6-ade7-42fb-8677-8e991987c1d8"
/>


after
<img width="553" height="440" alt="image"
src="https://github.com/user-attachments/assets/31fb33a3-bf0d-4564-b042-d1685334f5da"
/>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

2 participants