diff --git a/go/vt/grpccommon/options.go b/go/vt/grpccommon/options.go index 21acefd5cf..b66e7fa8fe 100644 --- a/go/vt/grpccommon/options.go +++ b/go/vt/grpccommon/options.go @@ -20,6 +20,7 @@ import ( "flag" "sync" + "github.com/youtube/vitess/go/stats" "google.golang.org/grpc" ) @@ -44,3 +45,7 @@ func EnableTracingOpt() { grpc.EnableTracing = *EnableTracing }) } + +func init() { + stats.NewString("GrpcVersion").Set(grpc.Version) +}