Open jonatasfreitasv opened 6 years ago
# gitlab.lojasrenner.com.br/bd-api-gateway-2/vendor/github.com/prometheus/client_model/go vendor/github.com/prometheus/client_model/go/metrics.pb.go:96:31: undefined: proto.InternalMessageInfo vendor/github.com/prometheus/client_model/go/metrics.pb.go:141:27: undefined: proto.InternalMessageInfo vendor/github.com/prometheus/client_model/go/metrics.pb.go:179:29: undefined: proto.InternalMessageInfo vendor/github.com/prometheus/client_model/go/metrics.pb.go:218:30: undefined: proto.InternalMessageInfo vendor/github.com/prometheus/client_model/go/metrics.pb.go:265:29: undefined: proto.InternalMessageInfo vendor/github.com/prometheus/client_model/go/metrics.pb.go:317:29: undefined: proto.InternalMessageInfo vendor/github.com/prometheus/client_model/go/metrics.pb.go:357:31: undefined: proto.InternalMessageInfo vendor/github.com/prometheus/client_model/go/metrics.pb.go:410:28: undefined: proto.InternalMessageInfo vendor/github.com/prometheus/client_model/go/metrics.pb.go:461:28: undefined: proto.InternalMessageInfo vendor/github.com/prometheus/client_model/go/metrics.pb.go:544:34: undefined: proto.InternalMessageInfo vendor/github.com/prometheus/client_model/go/metrics.pb.go:544:34: too many errors
package main import ( "github.com/gin-contrib/gzip" "github.com/gin-gonic/gin" "github.com/zsais/go-gin-prometheus" ) func main() { r := gin.New() r.Use(gzip.Gzip(gzip.DefaultCompression)) p := ginprometheus.NewPrometheus("gin") p.Use(r) r.GET("/", func(c *gin.Context) { c.JSON(200, "Hello world!") }) r.Run(":29090") }
That looks like it might be an issue with your vendor directory. I'm not seeing the same issue running that example code