Skip to content

Is there a way to log Unhandled Promise Rejections? #298

@PawelLampliapps

Description

@PawelLampliapps

I want to log Unhandled Promise Rejections which are logged to the console in dev mode like this:
image

I thought setting config.verbosity to SdkVerbosity.WARN allows this, but it is not.
Is it even possible or have done something wrong during initialization DataDog instance?

https://github.com/PawelLampliapps/DataDogAsyncExceptionTestApp - example app I was testing on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions