feat: add Sentry error reporting

Capture command errors and panics with Sentry SDK. DSN injected
at build time via ldflags (dev builds silent, releases report).
Opt-out: UNARR_NO_TELEMETRY=1.
This commit is contained in:
Deivid Soto 2026-03-29 01:00:26 +01:00
parent 6e07e82d51
commit 3d6142a62e
7 changed files with 120 additions and 2 deletions

View file

@ -17,6 +17,7 @@ builds:
ldflags:
- -s -w
- -X github.com/torrentclaw/torrentclaw-cli/internal/cmd.Version={{.Version}}
- -X github.com/torrentclaw/torrentclaw-cli/internal/sentry.dsn={{ .Env.SENTRY_DSN }}
upx:
- enabled: true