Example Go app instrumented with go-grpc-middleware
This directory has server and client application communicating using testpb.PingService gRPC service.
Both are instrumented with example interceptors for auth, observability correlation, timeouts and more.
Feel free to copy and play with it.
Usage
Run server in one terminal:
go run server/main.go
Run client in second terminal:
go run client/main.go
You should see logs and tracing in the output of both terminals thanks to logging and otlpgrpc interceptors. To check metrics instrumented with prometheus interceptor you can curl OpenMetrics (so exemplars are included):