diff --git a/web/service.go b/web/service.go index cff7e113..069a53e2 100644 --- a/web/service.go +++ b/web/service.go @@ -370,6 +370,10 @@ func (s *service) Init(opts ...Option) error { return nil })) + // pass in own name and version + serviceOpts = append(serviceOpts, micro.Name(s.opts.Name)) + serviceOpts = append(serviceOpts, micro.Version(s.opts.Version)) + s.opts.Service.Init(serviceOpts...) srv := s.genSrv() srv.Endpoints = s.srv.Endpoints