/plushcap/analysis/sentry/sentry-how-we-made-javascript-stack-traces-awesome

How We Made JavaScript Stack Traces Awesome

What's this blog post about?

Sentry has recently improved its JavaScript stack traces by introducing JavaScript Source Scopes, which parse the original code to reconstruct source scopes and resolve scope information via source maps. This approach is more effective than relying solely on source maps, as it allows for better decisions on function names and surrounding context. The new implementation also handles anonymous callback functions, class methods, and object literal properties more accurately. As a result, stack traces are now easier to read and understand, with improved function names and additional contextual information such as class names.

Company
Sentry

Date published
Nov. 30, 2022

Author(s)
Kamil Ogórek, Arpad Borsos, Armin Ronacher

Word count
2236

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.