mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
Tracing (#156)
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"github.com/micro/services/location/handler"
|
||||
pb "github.com/micro/services/location/proto"
|
||||
"github.com/micro/services/location/subscriber"
|
||||
"github.com/micro/services/pkg/tracing"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -17,6 +18,8 @@ func main() {
|
||||
pb.RegisterLocationHandler(location.Server(), new(handler.Location))
|
||||
|
||||
service.Subscribe(subscriber.Topic, new(subscriber.Location))
|
||||
traceCloser := tracing.SetupOpentracing("location")
|
||||
defer traceCloser.Close()
|
||||
|
||||
if err := location.Run(); err != nil {
|
||||
log.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user