I'm calling GRPC endpoints from Ruby.
The proto endpoints are for example rpc SayHello (HelloRequest) returns (HelloReply)
, and implemented in Go, so they take context when calling from Go. The generated client supports client.SayHello(ctx context.Context, request *HelloRequest)
.
However when calling from Ruby it's just client.SayHello(request)
, where request
's type is HelloRequest. How do I pass in the context? I want to do this because the Go endpoint implementations use the context in a variety of ways such as logging.