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:
parent
6e07e82d51
commit
3d6142a62e
7 changed files with 120 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue