When JavaScript errors occur, the JavaScript Agent capturesstack traces at every asynchronous calls and stitches them together with the original stack trace. This is called a long stack trace. However, when troubleshooting JavaScript errors, it may be helpful to disable capturing long stack traces. You may want to disable this if the long stack trace is too long - the Controller UI does not display long stack traces with more than 20,000 characters.
If disabled, the agent will only report the synchronous calls.
To disable longStackTrace, set config.longStackTrace to false: