Skip to content

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

Open
scttcper wants to merge 2 commits intomasterfrom
scttcper/new-stack-trace-span-profiles
Open

feat(profiling): New stack trace in span profile details#112559
scttcper wants to merge 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>
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.

1 participant