Skip to content

Commit 92949d3

Browse files
committed
use trace origin naming
1 parent 621e52f commit 92949d3

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

packages/core/src/integrations/supabase.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,8 @@ function instrumentAuthOperation(operation: AuthOperationFn, isAdmin = false): A
235235

236236
captureException(res.error, {
237237
mechanism: {
238-
// assuming handled: true because users are expected to handle returned errors
239-
handled: true,
240-
type: 'supabase.auth',
238+
handled: false,
239+
type: 'auto.db.supabase.auth',
241240
},
242241
});
243242
} else {
@@ -253,9 +252,8 @@ function instrumentAuthOperation(operation: AuthOperationFn, isAdmin = false): A
253252

254253
captureException(err, {
255254
mechanism: {
256-
// assuming handled: false here because this is an unexpected error
257255
handled: false,
258-
type: 'supabase.auth',
256+
type: 'auto.db.supabase.auth',
259257
},
260258
});
261259

@@ -422,9 +420,8 @@ function instrumentPostgRESTFilterBuilder(PostgRESTFilterBuilder: PostgRESTFilte
422420

423421
captureException(err, {
424422
mechanism: {
425-
// assuming handled: true here because users are expected to handle returned errors
426-
handled: true,
427-
type: 'supabase.db',
423+
handled: false,
424+
type: 'auto.db.supabase.postgres',
428425
},
429426
contexts: {
430427
supabase: supabaseContext,

0 commit comments

Comments
 (0)