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
|
|
@ -1,7 +1,14 @@
|
|||
package main
|
||||
|
||||
import "github.com/torrentclaw/torrentclaw-cli/internal/cmd"
|
||||
import (
|
||||
"github.com/torrentclaw/torrentclaw-cli/internal/cmd"
|
||||
"github.com/torrentclaw/torrentclaw-cli/internal/sentry"
|
||||
)
|
||||
|
||||
func main() {
|
||||
sentry.Init(cmd.Version)
|
||||
defer sentry.Close()
|
||||
defer sentry.RecoverPanic()
|
||||
|
||||
cmd.Execute()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue