@@ -59,7 +59,7 @@ export function withSentry<Env = unknown, QueueHandlerMessage = unknown, CfHostM
5959 apply ( target , thisArg , args ) {
6060 const [ err ] = args ;
6161
62- captureException ( err , { mechanism : { handled : false , type : 'cloudflare' } } ) ;
62+ captureException ( err , { mechanism : { handled : false , type : 'auto.faas. cloudflare.error_handler ' } } ) ;
6363
6464 return Reflect . apply ( target , thisArg , args ) ;
6565 } ,
@@ -97,7 +97,7 @@ export function withSentry<Env = unknown, QueueHandlerMessage = unknown, CfHostM
9797 try {
9898 return await ( target . apply ( thisArg , args ) as ReturnType < typeof target > ) ;
9999 } catch ( e ) {
100- captureException ( e , { mechanism : { handled : false , type : 'cloudflare' } } ) ;
100+ captureException ( e , { mechanism : { handled : false , type : 'auto.faas. cloudflare.scheduled ' } } ) ;
101101 throw e ;
102102 } finally {
103103 waitUntil ( flush ( 2000 ) ) ;
@@ -138,7 +138,7 @@ export function withSentry<Env = unknown, QueueHandlerMessage = unknown, CfHostM
138138 try {
139139 return await ( target . apply ( thisArg , args ) as ReturnType < typeof target > ) ;
140140 } catch ( e ) {
141- captureException ( e , { mechanism : { handled : false , type : 'cloudflare' } } ) ;
141+ captureException ( e , { mechanism : { handled : false , type : 'auto.faas. cloudflare.email ' } } ) ;
142142 throw e ;
143143 } finally {
144144 waitUntil ( flush ( 2000 ) ) ;
@@ -188,7 +188,7 @@ export function withSentry<Env = unknown, QueueHandlerMessage = unknown, CfHostM
188188 try {
189189 return await ( target . apply ( thisArg , args ) as ReturnType < typeof target > ) ;
190190 } catch ( e ) {
191- captureException ( e , { mechanism : { handled : false , type : 'cloudflare' } } ) ;
191+ captureException ( e , { mechanism : { handled : false , type : 'auto.faas. cloudflare.queue ' } } ) ;
192192 throw e ;
193193 } finally {
194194 waitUntil ( flush ( 2000 ) ) ;
@@ -220,7 +220,7 @@ export function withSentry<Env = unknown, QueueHandlerMessage = unknown, CfHostM
220220 try {
221221 return await ( target . apply ( thisArg , args ) as ReturnType < typeof target > ) ;
222222 } catch ( e ) {
223- captureException ( e , { mechanism : { handled : false , type : 'cloudflare' } } ) ;
223+ captureException ( e , { mechanism : { handled : false , type : 'auto.faas. cloudflare.tail ' } } ) ;
224224 throw e ;
225225 } finally {
226226 waitUntil ( flush ( 2000 ) ) ;
0 commit comments