mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-15 12:34:44 +00:00
merge master
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"github.com/micro/micro/v3/service/logger"
|
||||
"github.com/micro/services/helloworld/handler"
|
||||
pb "github.com/micro/services/helloworld/proto"
|
||||
"github.com/micro/services/pkg/tracing"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -16,6 +17,9 @@ func main() {
|
||||
// Register Handler
|
||||
pb.RegisterHelloworldHandler(srv.Server(), new(handler.Helloworld))
|
||||
|
||||
traceCloser := tracing.SetupOpentracing("helloworld")
|
||||
defer traceCloser.Close()
|
||||
|
||||
// Run the service
|
||||
if err := srv.Run(); err != nil {
|
||||
logger.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user