mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
tracing emojis
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"github.com/micro/services/emoji/handler"
|
"github.com/micro/services/emoji/handler"
|
||||||
pb "github.com/micro/services/emoji/proto"
|
pb "github.com/micro/services/emoji/proto"
|
||||||
|
"github.com/micro/services/pkg/tracing"
|
||||||
|
|
||||||
"github.com/micro/micro/v3/service"
|
"github.com/micro/micro/v3/service"
|
||||||
"github.com/micro/micro/v3/service/logger"
|
"github.com/micro/micro/v3/service/logger"
|
||||||
@@ -17,6 +18,8 @@ func main() {
|
|||||||
|
|
||||||
// Register handler
|
// Register handler
|
||||||
pb.RegisterEmojiHandler(srv.Server(), new(handler.Emoji))
|
pb.RegisterEmojiHandler(srv.Server(), new(handler.Emoji))
|
||||||
|
traceCloser := tracing.SetupOpentracing("emoji")
|
||||||
|
defer traceCloser.Close()
|
||||||
|
|
||||||
// Run service
|
// Run service
|
||||||
if err := srv.Run(); err != nil {
|
if err := srv.Run(); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user