Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Feature Request] extract Error.cause stacks when logging errors #168

Open
Labels
agent-nodejsMake available for APM Agents project planning. community
@gioragutt

Description

Now that Error.cause is somewhat standard, it's be great if the cause chain's stack traces would also be extracted when logging errors, sort of like the default .toString() of exceptions in Java.

From what I could gather in the code, only err.stack is extracted.

Looking at recent NodeJS docs, it does look like the internal formatter/inspector already handles the cause of an error when printing it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-nodejsMake available for APM Agents project planning. community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /