Open
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/deno
SDK Version
8.7.0
Framework Version
1.44.1
Link to Sentry event
No response
SDK Setup
// foo.ts
import * as Sentry from 'npm:@sentry/deno'
Sentry.init({
dsn: '...',
integrations: [Sentry.captureConsoleIntegration()],
})
setTimeout(() => {
console.error(new Error('This is an error'))
prompt('Press Enter to exit...')
}, 100)
Steps to Reproduce
- run
deno run -A foo.ts
Expected Result
It sends the error to Sentry.
Actual Result
Nothing happens.
If I manually do something like this it works, but the integration isn't working:
const orig = console.error
console.error = (...args: unknown[]) => {
if (args.length === 1 && args[0] instanceof Error) {
Sentry.captureException(args[0])
}
orig(...args)
}
Metadata
Metadata
Assignees
Type
Projects
Status
No status