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:
@@ -2,6 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
iproto "github.com/micro/services/image/proto"
|
||||
"github.com/micro/services/pkg/tracing"
|
||||
"github.com/micro/services/thumbnail/handler"
|
||||
pb "github.com/micro/services/thumbnail/proto"
|
||||
|
||||
@@ -18,6 +19,8 @@ func main() {
|
||||
|
||||
// Register handler
|
||||
pb.RegisterThumbnailHandler(srv.Server(), handler.NewThumbnail(iproto.NewImageService("image", srv.Client())))
|
||||
traceCloser := tracing.SetupOpentracing("thumbnail")
|
||||
defer traceCloser.Close()
|
||||
|
||||
// Run service
|
||||
if err := srv.Run(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user