Home / Companies / Sentry / Blog / Post Details
Content Deep Dive

How We Made JavaScript Stack Traces Awesome

Blog post from Sentry

Post Details
Company
Date Published
Author
Kamil Ogórek, Arpad Borsos, Armin Ronacher
Word Count
2,236
Language
English
Hacker News Points
-
Summary

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.