Fix the broken calls to the monitor() by having it take arguments as pointers.

This is needed for the changes to various labels from later in the function
to be picked up.
This commit is contained in:
Alex Robinson
2015-03-06 22:36:03 +00:00
parent dca88634ae
commit 60f0e9d673
5 changed files with 11 additions and 8 deletions

View File

@@ -90,7 +90,7 @@ func (r *ProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
var apiResource string
var httpCode int
reqStart := time.Now()
defer monitor("proxy", verb, apiResource, httpCode, reqStart)
defer monitor("proxy", &verb, &apiResource, &httpCode, reqStart)
requestInfo, err := r.apiRequestInfoResolver.GetAPIRequestInfo(req)
if err != nil {