grpc-go/stats
Marten Klencke 9c3a959569 stats: add Trailer to client-side stats.End (#2639)
Currently, it is not possible to access trailers from within a
stats.Handler. The reason is that both stats.Handler and
ClientStream.Trailer require a lock on the ClientStream.

A workaround would be to start a separate goroutine that will call
ClientStream.Trailer asynchronously, but that requires careful
coordination and we can quite easily make the trailer metadata available
to the stats.Handler directly.

Use case: an interceptor that processes trailer metadata for each
streaming RPC after the stream has finished. Note that a
StreamClientInterceptor returns immediately, before the stream has
finished and before the trailer metadata is available.
2019-03-13 10:10:52 -07:00
..
grpc_testing internal: Update proto generated code (#2133) 2018-06-08 17:54:26 -07:00
handlers.go cleanup: replace "x/net/context" import with "context" (#2439) 2018-11-12 13:30:41 -08:00
stats.go stats: add Trailer to client-side stats.End (#2639) 2019-03-13 10:10:52 -07:00
stats_test.go stats: add Trailer to client-side stats.End (#2639) 2019-03-13 10:10:52 -07:00