add more metadata
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
6856038abe
commit
46891c397f
3
grpc.go
3
grpc.go
@ -235,6 +235,9 @@ func (g *Server) handler(srv interface{}, stream grpc.ServerStream) (err error)
|
||||
md.Set(k, strings.Join(v, ", "))
|
||||
}
|
||||
md.Set("Path", fullMethod)
|
||||
md.Set("Micro-Server", "grpc")
|
||||
md.Set(metadata.HeaderEndpoint, methodName)
|
||||
md.Set(metadata.HeaderService, serviceName)
|
||||
|
||||
var td string
|
||||
// timeout for server deadline
|
||||
|
Loading…
Reference in New Issue
Block a user