mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 21:50:05 +00:00
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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user