Skip to content

Commit

Permalink
Use HttpSyncTransport for sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Aug 6, 2019
1 parent ebda609 commit c161fd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/dots/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ func sentryRecover() {
return
}

sentry.CurrentHub().Recover(err)
sentry.Flush(time.Second * 5)
debug.PrintStack()
sentry.CurrentHub().Recover(err)
}

func main() {
sentry.Init(sentry.ClientOptions{
Dsn: "https://4c3f2bfcecf64bda8a4729f205e9a540@sentry.io/1522580",
Dsn: "https://4c3f2bfcecf64bda8a4729f205e9a540@sentry.io/1522580",
Transport: sentry.NewHTTPSyncTransport(),
})

defer sentryRecover()
Expand Down

0 comments on commit c161fd1

Please sign in to comment.