Create an app project, copy its DSN from Settings, Installation, and pass it to the Sentry SDK. Nothing else changes.
Add the SDK module github.com/getsentry/sentry-go as you do today.
err := sentry.Init(sentry.ClientOptions{ Dsn: "https://<key>@your-supermetry.example/<id>", Release: "1.0.0",})if err != nil { log.Fatal(err)}defer sentry.Flush(2 * time.Second)Always set release: without it the SDK sends no sessions, so crash-free rates stay empty.
Tested version
Section titled “Tested version”sentry-go v0.50.0, built with Go 1.27.4: captured exceptions and recovered panics. Call sentry.Flush before the process exits so queued events are sent.