acoustic-carpenter-78188
03/30/2026, 8:22 PMsentry-sdk as a core dependency for crash reporting and usage metrics
• New src/flyte/_sentry.py module with lazy initialization, opt-out support (FLYTE_DISABLE_SENTRY=true), and dev mode detection
• Track flyte start demo usage via Sentry metrics counter (cli.command)
• Capture RuntimeSystemError in the Flyte runtime and report to Sentry (filters out user code errors)
Changes
| File | Change |
| ------------------------- | ---------------------------------------------------------------------- |
| src/flyte/_sentry.py | New — Sentry helper (hardcoded DSN, lazy init, opt-out, dev mode skip) |
| src/flyte/cli/_start.py | Emit cli.command metric + capture exceptions on flyte start demo |
| src/flyte/_bin/runtime.py | Capture RuntimeSystemError to Sentry in task runtime |
| pyproject.toml | Add sentry-sdk>=2.0 to core dependencies |
Test plan
• Run flyte start demo and verify event appears on Sentry dashboard
• Simulate a RuntimeSystemError and verify it appears as an issue on Sentry
• Simulate a RuntimeUserError and verify it is not reported to Sentry
• Set FLYTE_DISABLE_SENTRY=true and verify no events are sent
• Run from a git checkout and verify dev mode skips Sentry
flyteorg/flyte-sdkacoustic-carpenter-78188
04/06/2026, 3:42 PMacoustic-carpenter-78188
04/22/2026, 12:00 AM