d18ada4ee7
Docker Publish / docker (web, apps/web/Dockerfile, web) (push) Failing after 0s
Docker Publish / docker (api, apps/api/Dockerfile, api) (push) Failing after 1s
Publish Extension / detect-version (push) Has been skipped
Publish Extension / submit (push) Has been cancelled
2.2 KiB
2.2 KiB
GlitchTip integration
VidBee desktop now uses the Sentry-compatible GlitchTip stack in two layers:
- Runtime collection via
@sentry/electron - Release and source map upload via
@sentry/cli
Environment variables
Create apps/desktop/.env from apps/desktop/.env.example.
Required variables:
VITE_GLITCHTIP_DSN: project DSN from GlitchTipSENTRY_URL: GlitchTip base URL, for examplehttps://glitchtip.example.comSENTRY_ORG: GlitchTip organization slugSENTRY_PROJECT: GlitchTip project slugSENTRY_AUTH_TOKEN: auth token created in GlitchTip
Optional variables:
VITE_GLITCHTIP_ENVIRONMENT: defaults toproductionVITE_GLITCHTIP_ENVIRONMENT: defaults toproduction
Release is automatic by default and does not need to be configured.
Both runtime reporting and sentry-cli use:
vidbee-desktop@<apps/desktop package version>
Only add VITE_GLITCHTIP_RELEASE or SENTRY_RELEASE if you need a custom CI release name.
Upload source maps
GlitchTip is Sentry API compatible, so sentry-cli can target it by setting SENTRY_URL.
Run:
pnpm --filter ./apps/desktop run build:glitchtip
This does the following:
- Builds Electron main, preload, and renderer bundles with source maps enabled
- Creates a release named
vidbee-desktop@<version>by default - Uploads all source maps from
apps/desktop/out - Finalizes the release
If @sentry/cli was installed with pnpm's build scripts blocked, run pnpm approve-builds and allow @sentry/cli.
Event design
The integration is intentionally narrow:
- Main process:
- uncaught exceptions
- unhandled promise rejections
- renderer crash and unresponsive state
- yt-dlp, ffmpeg, auto-updater initialization failures
- download failures
- subscription sync, check, retry, and queue failures
- Renderer process:
window.errorunhandledrejection- React
ErrorBoundarycrashes
- Breadcrumbs:
- deep link entry
- page navigation
- one-click download queue
- subscription queue actions
- update lifecycle milestones
This keeps GlitchTip focused on actionable failures while still preserving the timeline needed to debug them.