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

3
cache/main.go vendored
View File

@@ -3,6 +3,7 @@ package main
import (
"github.com/micro/services/cache/handler"
pb "github.com/micro/services/cache/proto"
"github.com/micro/services/pkg/tracing"
"github.com/micro/micro/v3/service"
"github.com/micro/micro/v3/service/logger"
@@ -18,6 +19,8 @@ func main() {
// Register handler
pb.RegisterCacheHandler(srv.Server(), new(handler.Cache))
traceCloser := tracing.SetupOpentracing("cache")
defer traceCloser.Close()
// Run service
if err := srv.Run(); err != nil {
logger.Fatal(err)