mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
Tracing (#156)
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"github.com/micro/services/geocoding/handler"
|
||||
pb "github.com/micro/services/geocoding/proto"
|
||||
"github.com/micro/services/pkg/tracing"
|
||||
|
||||
"github.com/micro/micro/v3/service"
|
||||
"github.com/micro/micro/v3/service/config"
|
||||
@@ -33,6 +34,8 @@ func main() {
|
||||
|
||||
// Register handler
|
||||
pb.RegisterGeocodingHandler(srv.Server(), &handler.Geocoding{Maps: m})
|
||||
traceCloser := tracing.SetupOpentracing("geocoding")
|
||||
defer traceCloser.Close()
|
||||
|
||||
// Run service
|
||||
if err := srv.Run(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user