This commit is contained in:
Dominic Wong
2021-06-11 17:50:32 +01:00
committed by GitHub
parent 1ae03a6011
commit 5cd61c7dfb
19 changed files with 116 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ import (
"github.com/micro/micro/v3/service"
"github.com/micro/micro/v3/service/logger"
"github.com/micro/services/helloworld/handler"
"github.com/micro/services/pkg/tracing"
)
func main() {
@@ -14,6 +15,8 @@ func main() {
// Register Handler
srv.Handle(new(handler.Helloworld))
traceCloser := tracing.SetupOpentracing("helloworld")
defer traceCloser.Close()
// Run the service
if err := srv.Run(); err != nil {