Hi, I'm trying to use Sentry's event loop block detection <https://docs.sentry.io/platforms/javascript/guides/node/configuration/event-loop-block/>[0] and encountering an issue with stack traces for async code. Internally, Sentry uses StackTrace::CurrentStackTrace <https://github.com/getsentry/sentry-javascript-node-native-stacktrace/blob/d881dbd2023fed14b73e8be383f01e94fabf6578/module.cc#L55>[1] to retrieve stack traces, but this doesn't follow the stack across async bounds and only reports the trace for the currently running promise up to node's task runner. Further investigate revealed that StackTrace::CurrentStackTrace is implemented using Isolate::CaptureDetailedStackTrace, which has no handling for async stuff. That's in contrast with Isolate::CaptureSimpleStackTrace which does have special handling for async control flow. This can be observed in the async-aware stack traces when an exception is thrown.
I wasn't able to find a way to access an async-aware stack trace this via v8's external API surface. Am I missing something or is this functionality not supported? [0]: https://docs.sentry.io/platforms/javascript/guides/node/configuration/event-loop-block/ [1]: https://github.com/getsentry/sentry-javascript-node-native-stacktrace/blob/d881dbd2023fed14b73e8be383f01e94fabf6578/module.cc#L55 -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/v8-dev/c5e9c06d-461d-443e-9d1c-fcf9f1d34395n%40googlegroups.com.
