Ability to control exception depth to avoid CPU spikes
See original GitHub issueDo you want to request a feature or report a bug?
Feature.
What is the current behavior?
Raven client for NodeJS currently sets MAX_SERIALIZE_EXCEPTION_DEPTH = 3
. For large exceptions from external APIs the exception objects may contain a large amount of data and nested keys, causing Sentry to spike NodeJS process, blocking all other actions.
What is the expected behavior?
captureException
should allow control over how deep serializeException
goes by default. Raven already has a kwargs
parameter in which this could reasonably be passed down to serializeException
, who’s 2nd parameter is the maximum depth.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Best practices for avoiding high CPU usage - InfoWorld
In this post I would like to highlight a few performance optimization tips that would help you to prevent CPU outrages in your...
Read more >How to Stop CPU Spikes - Small Business - Chron.com
CPU spikes make your computer slow and unresponsive. ... Task Manager displays the tasks running on your computer and allows you to stop...
Read more >What are the effects of exceptions on performance in Java?
It depends how exceptions are implemented. The simplest way is using setjmp and longjmp. That means all registers of the CPU are written...
Read more >Debug high CPU usage - .NET Core - Microsoft Learn
In this tutorial, you'll learn how to debug an excessive CPU usage scenario. Using the provided example ASP.NET Core web app source code ......
Read more >DAE error -6031 or -9128. 'You're running out of CPU power ...
Reduce the number of Host Processors. Set this to one less than the maximum number – this usually results in best performance. If...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing the issue, as it seems like the original issue has been resolved. Please do not hesitate to ping me if it is still relevant, and I will happily reopen and work on it. Cheers!
@kamilogorek any idea in which version this would become available?