GRPC metrics improvements

- change to ocgrpc plugin
- rename labels to be more consistent
- refactor view registration patterns
- add server metrics- add client request size metrics
This commit is contained in:
Travis Groth 2019-07-10 22:35:56 -04:00
parent d0f1314286
commit 4bd4b27f28
11 changed files with 273 additions and 152 deletions

View file

@ -4,12 +4,14 @@ import (
"strings"
"testing"
"go.opencensus.io/stats"
"go.opencensus.io/stats/view"
)
func testDataRetrieval(measure stats.Measure, t *testing.T, want string) {
name := measure.Name()
func testDataRetrieval(v *view.View, t *testing.T, want string) {
if v == nil {
t.Fatalf("%s: nil view passed", t.Name())
}
name := v.Name
data, err := view.RetrieveData(name)
if err != nil {