The example code in this repo is taken from https://github.com/grpc/grpc-go/tree/master/examples/features/errors
This app makes use of packages (e.g. protocol buffers) in the gRPC Framework and its example applications. So if you don't have gRPC in your go workspace then run:
go get -u google.golang.org/grpc
git clone git@github.com:thinkocapo/golang-grpc.git
go get github.com/getsentry/sentry-go
- paste your Sentry key into
server/server.go
// SENTRY INSTALLATION
err := sentry.Init(sentry.ClientOptions{
Dsn: "https://a4efaa11ca764dd8a91d790c0926f810@sentry.io/1511084",
})
go run server/server.go
go run client/client.go
- check sentry.io to see your Event
- https://grpc.io/docs/guides/error/
- https://github.com/grpc/grpc-go
- https://github.com/grpc/grpc-go/blob/master/Documentation/rpc-errors.md
- sentry-go SDK
- RPC 'Status' Error
- Stuck running Go? Note that this differs from other programming environments in which every project has a separate workspace and workspaces are closely tied to version control repositories.
- Note that GOPATH must not be the same path as your Go installation.