There's an off-the-shelf package that provides most of the stats we care about for gRPC using interceptors. This change vendors go-grpc-prometheus and its dependencies, and calls out to the interceptors provided by that package from our own interceptors. This will allow us to get metrics like latency histograms by call, status codes by call, and so on. Fixes #2390. This change vendors go-grpc-prometheus and its dependencies. Per contributing guidelines, I've run the tests on these dependencies, and they pass: go test github.com/davecgh/go-spew/spew github.com/grpc-ecosystem/go-grpc-prometheus github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto github.com/pmezard/go-difflib/difflib github.com/stretchr/testify/assert github.com/stretchr/testify/require github.com/stretchr/testify/suite ok github.com/davecgh/go-spew/spew 0.022s ok github.com/grpc-ecosystem/go-grpc-prometheus 0.120s ? github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto [no test files] ok github.com/pmezard/go-difflib/difflib 0.042s ok github.com/stretchr/testify/assert 0.021s ok github.com/stretchr/testify/require 0.017s ok github.com/stretchr/testify/suite 0.012s |
||
|---|---|---|
| .. | ||
| doc.go | ||
| forward_requirements.go | ||
| require.go | ||
| require.go.tmpl | ||
| require_forward.go | ||
| require_forward.go.tmpl | ||
| requirements.go | ||