Skip to content

Commit

Permalink
Merge pull request #1590 from weaveworks/admin-instrumentation
Browse files Browse the repository at this point in the history
Get route name before munging request
  • Loading branch information
jml authored Jun 15, 2016
2 parents fba555c + 39c9de8 commit bd7cc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/middleware/instrument.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ func (i Instrument) Wrap(next http.Handler) http.Handler {
begin := time.Now()
isWS := strconv.FormatBool(isWSHandshakeRequest(r))
interceptor := &interceptor{ResponseWriter: w, statusCode: http.StatusOK}
route := i.getRouteName(r)
next.ServeHTTP(interceptor, r)
var (
route = i.getRouteName(r)
status = strconv.Itoa(interceptor.statusCode)
took = time.Since(begin)
)
Expand Down

0 comments on commit bd7cc11

Please sign in to comment.