set Sentry config based on distribution (#6301)

Set the config based on compile-time DISTRIBUTION env var.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6301-set-Sentry-config-based-on-distribution-2986d73d3650815f9b7ef821bbdd745f)
by [Unito](https://www.unito.io)
This commit is contained in:
Christian Byrne
2025-10-26 02:05:23 -07:00
committed by GitHub
parent cd50c54e61
commit 857c13158b

View File

@@ -49,11 +49,18 @@ Sentry.init({
dsn: __SENTRY_DSN__,
enabled: __SENTRY_ENABLED__,
release: __COMFYUI_FRONTEND_VERSION__,
integrations: [],
autoSessionTracking: false,
defaultIntegrations: false,
normalizeDepth: 8,
tracesSampleRate: 0
tracesSampleRate: isCloud ? 1.0 : 0,
replaysSessionSampleRate: 0,
replaysOnErrorSampleRate: 0,
// Only set these for non-cloud builds
...(isCloud
? {}
: {
integrations: [],
autoSessionTracking: false,
defaultIntegrations: false
})
})
app.directive('tooltip', Tooltip)
app