Deno <> Sentry | captureConsoleIntegration and captureException not working?
Seems like
captureConsoleIntegrationcaptureConsoleIntegration and captureExceptioncaptureException are not working in Deno?import Env from '@/env.ts';
import * as Sentry from "@sentry/deno";
if (Env.SENTRY_DSN) {
Sentry.init({
dsn: Env.SENTRY_DSN,
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
integrations: [
Sentry.denoCronIntegration(),
Sentry.captureConsoleIntegration({levels: ['error']})
],
});
}
console.error("hahaha")
// throw new Error('test 1')
try {
throw Error("test 2")
} catch (error) {
Sentry.captureException(error)
}import Env from '@/env.ts';
import * as Sentry from "@sentry/deno";
if (Env.SENTRY_DSN) {
Sentry.init({
dsn: Env.SENTRY_DSN,
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
integrations: [
Sentry.denoCronIntegration(),
Sentry.captureConsoleIntegration({levels: ['error']})
],
});
}
console.error("hahaha")
// throw new Error('test 1')
try {
throw Error("test 2")
} catch (error) {
Sentry.captureException(error)
}