question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to control exception depth to avoid CPU spikes

See original GitHub issue

Do 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:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kamilogorekcommented, Jul 2, 2021

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!

0reactions
adriaanmeuriscommented, Mar 5, 2019

@kamilogorek any idea in which version this would become available?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found