dd-trace-js
dd-trace-js copied to clipboard
[FEATURE]: Support for cause in error stack
Package Name
No response
Package Version(s)
5.56.0
Describe the feature you'd like
When viewing error stack it would be nice to be able to see the complete stack. Currently only the top-level error is shown.
Since Node.js 16.9 exists the property cause for this.
Is your feature request related to a problem?
No response
Describe alternatives you've considered
No response
Additional context
Similar to other languages when an error is partially dealt with and then triggers another error, it is possible to implement such behaviour in Node.js.
@wregis just a heads up: this is something I am looking into to add support for in a 'near' future. That said, it might not be available before next year.