Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

hertz-contrib/tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opentracing

Opentracing tracer for Hertz

Server usage

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())
    ...
}

Client usage

func main() {
    ...
    c, _ := client.NewClient()
    c.Use(hertz.ClientTraceMW, hertz.ClientCtx)
    ...
}

Example

Executable Example

Releases

No releases published

Contributors 3

  •  
  •  
  •  

Languages