Opentracing tracer for Hertz
func main() {
...
h := server.Default(server.WithTracer(hertz.NewTracer(ht, func(c *app.RequestContext) string {
return "test.hertz.server" + "::" + c.FullPath()
})))
h.Use(hertz.ServerCtx())
...
}
func main() {
...
c, _ := client.NewClient()
c.Use(hertz.ClientTraceMW, hertz.ClientCtx)
...
}