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

@@ -1,6 +1,7 @@
package main
import (
"github.com/micro/services/pkg/tracing"
"github.com/micro/services/sentiment/handler"
pb "github.com/micro/services/sentiment/proto"
@@ -16,6 +17,8 @@ func main() {
// Register handler
pb.RegisterSentimentHandler(srv.Server(), new(handler.Sentiment))
traceCloser := tracing.SetupOpentracing("sentiment")
defer traceCloser.Close()
// Run service
if err := srv.Run(); err != nil {