set user ID (anonymized) in Sentry for cloud

This commit is contained in:
bymyself
2025-09-16 17:18:12 -07:00
parent 4a10017bd2
commit 108ad22d82
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import * as Sentry from '@sentry/vue'
import { app } from '../../../scripts/app'
app.registerExtension({
name: 'Comfy.Cloud.Sentry',
onAuthUserResolved: (user, _app) => {
// https://docs.sentry.io/platforms/javascript/apis/#setUser
Sentry.setUser({
id: user.id
})
}
})

View File

@@ -1,4 +1,5 @@
import './clipspace'
import './cloud/sentry'
import './contextMenuFilter'
import './dynamicPrompts'
import './editAttention'