Sabah Kaldwin
Sabah Kaldwin2y ago

Sentry DenoOsUptime is not a function issue

I'm using npm:@sentry/node@7.49.0 and the following script to test the integration
// sentry import and init here
async function testEvent() {
try {
throw new Error("Nope")
} catch (e) {
Sentry.captureException(e)
}
}

await testEvent()
// sentry import and init here
async function testEvent() {
try {
throw new Error("Nope")
} catch (e) {
Sentry.captureException(e)
}
}

await testEvent()
I did try adding Sentry.flush but that does not resolve the issue Instead of capturing the actual Nope error, all the issues that show up in Sentry are the DenoOs.Uptime is not a function Which is strange because I can see that this PR has already been merged https://github.com/denoland/deno_std/pull/3052
GitHub
feat(node): Add support for os.uptime by kamilogorek · Pull Request...
Dependent on denoland/deno#17179 A part of denoland/deno#17850 This will also allow for out-of-the-box support for npm:@sentry/node, ref: getsentry/sentry-javascript#3009 (comment)
1 Reply