[go-nuts] Extending deadline for logging

2018-08-14 Thread rbz via golang-nuts
I'm working on a service that write some log info to spanner when it's done responding to a request. However, the service uses the context's deadline to write to spanner, so if the deadline expires due to some long running RPC, the write to spanner fails (because the deadline expired), and we d

[go-nuts] Re: Extending deadline for logging

2018-08-15 Thread rbz via golang-nuts
As an example: Client calls MyService with a deadline of 10 seconds. MyService calls OtherService as part of responding. However, the call to OtherService times out due to the deadline in 10 seconds. MyService tries to log the error to Spanner; but it's still using that context deadline which exp