Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

captureUnhandledRejections - add flag for unhandled promise rejections #446

Closed
wants to merge 1 commit into from

Conversation

kumavis
Copy link
Contributor

@kumavis kumavis commented Apr 4, 2018

@kamilogorek
Copy link
Contributor

kamilogorek commented Apr 5, 2018

This will be overridden by any globally set extra tags, as Object.assign is not recursive.
To fix this, you need to manually assign a specific attribute instead.

var context = promise.domain && promise.domain.sentryContext;
context.extra = context.extra || {};
context.extra.unhandledPromiseRejection = true;

@kamilogorek
Copy link
Contributor

Fixed myself and merged it to master manually

@kamilogorek kamilogorek closed this Apr 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants