add Path metadata #168

Merged
vtolstov merged 1 commits from metamaster into master 2023-11-03 19:30:48 +03:00
3 changed files with 1051 additions and 22 deletions

18
go.mod
View File

@ -3,10 +3,16 @@ module go.unistack.org/micro-server-grpc/v3
go 1.16 go 1.16
require ( require (
github.com/golang/protobuf v1.5.2 github.com/golang/protobuf v1.5.3
github.com/quic-go/quic-go v0.35.1 github.com/google/pprof v0.0.0-20231101202521-4ca4178f5c7a // indirect
go.unistack.org/micro/v3 v3.10.14 github.com/onsi/ginkgo/v2 v2.13.0 // indirect
golang.org/x/net v0.7.0 github.com/quic-go/qtls-go1-19 v0.3.3 // indirect
google.golang.org/grpc v1.52.3 github.com/quic-go/quic-go v0.40.0
google.golang.org/protobuf v1.28.1 github.com/stretchr/testify v1.8.3 // indirect
go.unistack.org/micro/v3 v3.10.31
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/net v0.17.0
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect
google.golang.org/grpc v1.59.0
google.golang.org/protobuf v1.31.0
) )

1054
go.sum

File diff suppressed because it is too large Load Diff

View File

@ -234,6 +234,7 @@ func (g *Server) handler(srv interface{}, stream grpc.ServerStream) (err error)
for k, v := range gmd { for k, v := range gmd {
md.Set(k, strings.Join(v, ", ")) md.Set(k, strings.Join(v, ", "))
} }
md.Set("Path", fullMethod)
var td string var td string
// timeout for server deadline // timeout for server deadline