Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Usage:

r := chi.NewRouter()
statsdClient, _ := statsd.New(
  statsd.Prefix("myapp"),
  statsd.Address("localhost:8125"),
)
wrap := statsdwrap.NewChi("user_service", statsdClient)
handleHome := func(w http.ResponseWriter, r *http.Request) {
	time.Sleep(time.Millisecond * 1000)
	w.WriteHeader(http.StatusOK)
	w.Write([]byte("OK"))
}
r.Get(wrap.HandlerFunc("home", "/", handleHome))

About

A http handler wrapper for statsd

Topics

Resources

Releases

No releases published

Packages

No packages published

Languages