mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-22 07:44:11 +00:00
set user ID (anonymized) in Sentry for cloud
This commit is contained in:
13
src/extensions/core/cloud/sentry.ts
Normal file
13
src/extensions/core/cloud/sentry.ts
Normal 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
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -1,4 +1,5 @@
|
||||
import './clipspace'
|
||||
import './cloud/sentry'
|
||||
import './contextMenuFilter'
|
||||
import './dynamicPrompts'
|
||||
import './editAttention'
|
||||
|
||||
Reference in New Issue
Block a user