Node introduced support for the cause prop on Errors in node v16.9.0.
It would be great if the library could support parent exception details in a similar manner to the Java SDK so that there is proper use of the outer error in application insights.
At the moment I'm having to manually traverse the causes and log each of them separately