File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
packages/core/src/integrations Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,9 @@ function instrumentAuthOperation(operation: AuthOperationFn, isAdmin = false): A
235
235
236
236
captureException ( res . error , {
237
237
mechanism : {
238
- handled : false ,
238
+ // assuming handled: true because users are expected to handle returned errors
239
+ handled : true ,
240
+ type : 'supabase.auth' ,
239
241
} ,
240
242
} ) ;
241
243
} else {
@@ -251,7 +253,9 @@ function instrumentAuthOperation(operation: AuthOperationFn, isAdmin = false): A
251
253
252
254
captureException ( err , {
253
255
mechanism : {
256
+ // assuming handled: false here because this is an unexpected error
254
257
handled : false ,
258
+ type : 'supabase.auth' ,
255
259
} ,
256
260
} ) ;
257
261
@@ -417,6 +421,11 @@ function instrumentPostgRESTFilterBuilder(PostgRESTFilterBuilder: PostgRESTFilte
417
421
}
418
422
419
423
captureException ( err , {
424
+ mechanism : {
425
+ // assuming handled: true here because users are expected to handle returned errors
426
+ handled : true ,
427
+ type : 'supabase.db' ,
428
+ } ,
420
429
contexts : {
421
430
supabase : supabaseContext ,
422
431
} ,
@@ -448,6 +457,7 @@ function instrumentPostgRESTFilterBuilder(PostgRESTFilterBuilder: PostgRESTFilte
448
457
return res ;
449
458
} ,
450
459
( err : Error ) => {
460
+ // TODO: shouldn't we capture this error?
451
461
if ( span ) {
452
462
setHttpStatus ( span , 500 ) ;
453
463
span . end ( ) ;
You can’t perform that action at this time.
0 commit comments