Merge pull request 'add Path metadata' (#168) from metamaster into master
Some checks failed
build / test (push) Failing after 1m28s
build / lint (push) Failing after 2m33s
codeql / analyze (go) (push) Failing after 2m43s

Reviewed-on: #168
This commit is contained in:
Василий Толстов 2023-11-03 19:30:47 +03:00
commit 4003d714ba
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
require (
github.com/golang/protobuf v1.5.2
github.com/quic-go/quic-go v0.35.1
go.unistack.org/micro/v3 v3.10.14
golang.org/x/net v0.7.0
google.golang.org/grpc v1.52.3
google.golang.org/protobuf v1.28.1
github.com/golang/protobuf v1.5.3
github.com/google/pprof v0.0.0-20231101202521-4ca4178f5c7a // indirect
github.com/onsi/ginkgo/v2 v2.13.0 // indirect
github.com/quic-go/qtls-go1-19 v0.3.3 // indirect
github.com/quic-go/quic-go v0.40.0
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 {
md.Set(k, strings.Join(v, ", "))
}
md.Set("Path", fullMethod)
var td string
// timeout for server deadline