Is this correctly implemented?
const magicFunction = (data) => {
Sentry.configureScope(async (scope: any) => {
try {
let name = await getName(data)
scope.setExtra('name', name)
let profile = await getProfile(data)
scope.setExtra('profile', profile)
} catch (err) {
Sentry.setExtra('error', err)
Sentry.captureException(err)
}
})
}