Skip to content

Commit

Permalink
update capture exception mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Jul 29, 2024
1 parent 5671b7b commit 309c05a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cloudflare/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function withSentry<E extends ExportedHandler<any>>(
setHttpStatus(span, res.status);
return res;
} catch (e) {
captureException(e, { mechanism: { handled: false } });
captureException(e, { mechanism: { handled: false, type: 'cloudflare' } });
throw e;
} finally {
context.waitUntil(flush(2000));
Expand Down

0 comments on commit 309c05a

Please sign in to comment.