Skip to content

Sentry: render top-level/threads stacktraces, auto-open code frame, clean app:/// paths#286

Merged
butschster merged 2 commits into
buggregator:masterfrom
FluffyDiscord:fix/sentry-stacktrace-rendering
Jun 9, 2026
Merged

Sentry: render top-level/threads stacktraces, auto-open code frame, clean app:/// paths#286
butschster merged 2 commits into
buggregator:masterfrom
FluffyDiscord:fix/sentry-stacktrace-rendering

Conversation

@FluffyDiscord

Copy link
Copy Markdown

Display-side fixes for the Sentry module, the frontend counterpart to buggregator/server#339. Together they address the v2 long-standing issues in buggregator/server#338 (SvelteKit/JS stack traces "not there, no code read").

What's fixed

  • Render top-level / threads stacktraces (31b8306). Message events (and some JS SDKs) attach the stacktrace at the payload top level or under threads[].stacktrace rather than exception.values[].stacktrace. resolveExceptionValues surfaces those so the trace renders instead of showing nothing.
  • Auto-open the first code-bearing frame (31b8306). JS traces often put a library/anonymous frame on top; opening frame 0 showed no code. Open the first frame that carries source (then the first in_app frame), so the relevant code is visible by default.
  • Clean app:/// node paths (6146339). Sentry's node/RewriteFrames normalizes server paths to the app:// scheme with an empty authority, rendering as a confusing app:///+page.server.js (the path looked collapsed to ///). Show the clean app-relative path; URLs and node: builtins unchanged; IDE-link building still uses the raw filename so custom path mappings keep working.

Related

Rosta Kaleta added 2 commits June 8, 2026 15:09
Message events (PHP captureMessage with attach_stacktrace, some JS SDKs)
carry their trace at the top level or under threads, which the exception
view never read, so they showed no stacktrace. resolveExceptionValues now
synthesizes an exception from that trace. The frame list also auto-opens
the first frame with source code (then the first in_app frame) instead of
index 0, so JS traces whose innermost frame is a library/anonymous frame
no longer render with no code visible.
Sentry's node/RewriteFrames integration normalizes server paths to the app://
scheme with an empty authority, which rendered as a confusing 'app:///+page.server.js'
(the path looked collapsed to '///'). Display the clean app-relative path; URLs
and node: builtins are unchanged. IDE-link building still uses the raw filename
so custom path mappings keep working.
@FluffyDiscord

Copy link
Copy Markdown
Author

i guess the storybook test is something i cannot fix, if i understand the test correctly?

@butschster butschster merged commit 11083c2 into buggregator:master Jun 9, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants