Company
Date Published
Author
Jonas Badalic
Word count
1464
Language
English
Hacker News points
None

Summary

We have successfully set up and utilized the @sentry/profiling-node package for Node.js, leveraging Sentry's Performance product to profile our code and identify performance bottlenecks. By setting a sampling rate and instrumenting our services with Sentry, we can collect profiles that provide granular insights into execution time, allowing us to pinpoint slow functions and optimize code. Through profiling, we were able to find issues in test setup code and optimize it without impacting developer experience, as well as identify performance problems outside of our service, such as memory leaks in a third-party library. By enabling profiling, we can halve p75 durations and improve user experience or provide faster feedback loops for developers. With Sentry's Performance product providing the logical next set of information to resolve performance-related issues, we have seen success finding optimization opportunities in all Node.js based projects where profiling was added.