diff --git a/metrics/request.go b/metrics/request.go index fc9ccfb5..fa7306e8 100644 --- a/metrics/request.go +++ b/metrics/request.go @@ -35,10 +35,10 @@ func (m *RequestMetrics) Track(method, path string) *RequestTracker { // RequestTracker is used to track the duration and status of a request type RequestTracker struct { + metrics *RequestMetrics method string path string startTime time.Time - metrics *RequestMetrics } // Start will start the tracking of the request