update with hostport (#614)

This commit is contained in:
Belinda Vennam 2019-08-28 22:12:43 -04:00 committed by Knative Prow Robot
parent 886b8ff2cf
commit a9136e28d4
1 changed files with 2 additions and 1 deletions

View File

@ -124,7 +124,8 @@ func WithExporter(name string, logger *zap.SugaredLogger) ConfigOption {
}
exporter = exp
case config.Zipkin:
zipEP, err := zipkin.NewEndpoint(name, ":80")
hostPort := name + ":80"
zipEP, err := zipkin.NewEndpoint(name, hostPort)
if err != nil {
logger.Errorw("error building zipkin endpoint", zap.Error(err))
return