Pass stacktrace into Sentry.captureEvent

Im building a Hapi integration for the unified SDK and while using the Hapi error channels, Im wishing to pass in the request details along with the exception.

How can I parse the err.stack to be used with Sentry.captureEvent.stacktrace? It needs to be parsed into frames and I do not see a utility you’ve exposed for this.

Im using getExceptionFromError from @sentry/node/dist/parsers for now.