func (sh *StatsdLogHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
	requestStartTime := time.Now()
	sh.handler.ServeHTTP(w, req)
	requestDuration := time.Now().Sub(requestStartTime)

	description := sh.RequestFormatter(req)
	if description != "" {
		sh.statter.Counter(1.0, sh.prefix+"."+description+".requests", 1)
		sh.statter.Timing(1.0, sh.prefix+"."+description+".responsetime", requestDuration)
	}
}
func (sh *StatsdLogHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
	requestStartTime := time.Now()
	sh.handler.ServeHTTP(w, req)
	requestDuration := time.Now().Sub(requestStartTime)

	description := sh.RequestFormatter(req)
	if description != "" {
		sh.statter.Counter(1.0, sh.prefix+"."+description+".requests", 1)
		sh.statter.Timing(1.0, sh.prefix+"."+description+".responsetime", requestDuration)
	}
}
func ( sh * StatsdLogHandler ) ServeHTTP ( w http . ResponseWriter , req * http . Request ) { requestStartTime := time . Now ( ) sh . handler . ServeHTTP ( w , req ) requestDuration := time . Now ( ) . Sub ( requestStartTime ) description := sh . RequestFormatter ( req ) if description != " " { sh . statter . Counter ( 1.0 , sh . prefix + " " + description + " " , 1 ) sh . statter . Timing ( 1.0 , sh . prefix + " " + description + " " , requestDuration ) } }
// ServeHTTP records the time for a request and sends the result to statsd
ServeHTTP records the time for a request and sends the result to statsd