support node --enable-source-maps
usage with our custom Error.prepareStackTrace
usage
#3833
Labels
agent-nodejs
Make available for APM Agents project planning.
As of Node.js v21.6.0, node's internal
prepareStackTrace
function that handles source-map conversion for stack traces -- for the--enable-source-maps
CLI option -- is exposed (asError.prepareStackTrace
).That means that it should be possible chain our
prepareStackTrace
handling (which we use for parsing details from an exception for error reporting), with the core Node.js one when the user has used this CLI option.The text was updated successfully, but these errors were encountered: