From fc33f7ea66a27d358563a7f7c877f61c69958d65 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Wed, 5 Jun 2019 17:22:14 -0500 Subject: [PATCH] Add errantly removed pathParts definition --- http/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/http/handler.go b/http/handler.go index 9d3da95e3..f5b2fe56a 100644 --- a/http/handler.go +++ b/http/handler.go @@ -302,6 +302,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { // Calculate per request StatsD metrics when the handler is fully configured. statsTags := make([]string, 0, 4) + pathParts := strings.Split(r.URL.Path, "/") longQueryTime := h.api.LongQueryTime() if longQueryTime > 0 && dif > longQueryTime { h.logger.Printf("%s %s %v", r.Method, r.URL.String(), dif)