Skip to content

Conversation

@Lms24
Copy link
Member

@Lms24 Lms24 commented Apr 13, 2023

This PR adds a custom RewriteFrames iteratee to the server SDK which

  • Does exactly the same thing as the default iteratee if simply initializiung RewriteFrames() without custom options
  • Removes the module field from each stack frame

Removing the module field improves grouping because for some reason, our stack trace processing pipeline isn't able to resolve the bundled module name to the original file name correctly, leading to a new issue group for the same error, every time the app is built. I suspect this is because of the unique Ids that Vite assigns to modules or due to something that sorcery does when flattening source maps. By removing module field the grouping algorithm falls back to the filename field, which is correctly resolved and hence grouping works as expected.

ref #7669

@Lms24 Lms24 self-assigned this Apr 13, 2023
@Lms24 Lms24 requested review from a team, AbhiPrasad and mydea and removed request for a team April 13, 2023 08:42
Base automatically changed from lms/sveltekit-source-maps-server to develop April 13, 2023 11:59
@Lms24 Lms24 force-pushed the lms/sveltekit-strip-stack-frame-module-prop branch from e846c08 to 7fb5606 Compare April 13, 2023 12:00
@Lms24 Lms24 enabled auto-merge (squash) April 13, 2023 12:13
@Lms24 Lms24 merged commit b61ac96 into develop Apr 13, 2023
@Lms24 Lms24 deleted the lms/sveltekit-strip-stack-frame-module-prop branch April 13, 2023 12:20
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.

3 participants