Skip to content

support node --enable-source-maps usage with our custom Error.prepareStackTrace usage #3833

Closed
@trentm

Description

@trentm

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 (as Error.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-nodejsMake available for APM Agents project planning.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions