Skip to content

Commit 168e885

Browse files
expose sentry to extensions
1 parent 504aabd commit 168e885

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

src/extensions/core/cloud/sentry.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/main.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,15 @@ Sentry.init({
3737
enabled: __SENTRY_ENABLED__,
3838
release: __COMFYUI_FRONTEND_VERSION__,
3939
normalizeDepth: 8,
40+
integrations: [Sentry.browserTracingIntegration({ router })],
4041
tracesSampleRate: 1.0
4142
})
43+
44+
if (__SENTRY_ENABLED__) {
45+
// @ts-expect-error temporary solution to expose Sentry globally for cloud extensions
46+
window.Sentry = Sentry
47+
}
48+
4249
app.directive('tooltip', Tooltip)
4350
app
4451
.use(router)

0 commit comments

Comments
 (0)