From d7991aed1e7363301a7fc75717d41789fea1613a Mon Sep 17 00:00:00 2001 From: Michael Demmer Date: Fri, 5 Jan 2018 13:19:24 -0800 Subject: [PATCH] export the grpc version as a debug var --- go/vt/grpccommon/options.go | 5 +++++ 1 file changed, 5 insertions(+) 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) +}