We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a10017 commit 108ad22Copy full SHA for 108ad22
src/extensions/core/cloud/sentry.ts
@@ -0,0 +1,13 @@
1
+import * as Sentry from '@sentry/vue'
2
+
3
+import { app } from '../../../scripts/app'
4
5
+app.registerExtension({
6
+ name: 'Comfy.Cloud.Sentry',
7
+ onAuthUserResolved: (user, _app) => {
8
+ // https://docs.sentry.io/platforms/javascript/apis/#setUser
9
+ Sentry.setUser({
10
+ id: user.id
11
+ })
12
+ }
13
+})
src/extensions/core/index.ts
@@ -1,4 +1,5 @@
import './clipspace'
+import './cloud/sentry'
import './contextMenuFilter'
import './dynamicPrompts'
import './editAttention'
0 commit comments