From 309c05ab1163e2b7671b63845ae28697becb117a Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Mon, 29 Jul 2024 09:09:23 -0400 Subject: [PATCH] update capture exception mechanism --- packages/cloudflare/src/handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cloudflare/src/handler.ts b/packages/cloudflare/src/handler.ts index 4e988a7e539f..45eca78f9946 100644 --- a/packages/cloudflare/src/handler.ts +++ b/packages/cloudflare/src/handler.ts @@ -101,7 +101,7 @@ export function withSentry>( 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));