sentryMiddleware: ignore HTTPException errors

This commit is contained in:
Alex Gleason 2024-04-30 12:37:27 -05:00
parent d1b2e26abf
commit 0e6b4e8b45
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ const app = new Hono<AppEnv>();
if (Conf.sentryDsn) {
// @ts-ignore Mismatched hono types.
app.use('*', sentryMiddleware({ dsn: Conf.sentryDsn }));
app.use('*', sentryMiddleware({ dsn: Conf.sentryDsn, ignoreErrors: 'HTTPException' }));
}
const debug = Debug('ditto:http');