浏览代码

Ensure we pass the start time into the work request to adequately log query times.

Matt Bolt 6 年之前
父节点
当前提交
9c1975b3d1
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pkg/prom/prom.go

+ 1 - 0
pkg/prom/prom.go

@@ -194,6 +194,7 @@ func (rlpc *RateLimitedPrometheusClient) Do(ctx context.Context, req *http.Reque
 	rlpc.queue.Enqueue(&workRequest{
 		ctx:      ctx,
 		req:      req,
+		start:    time.Now(),
 		respChan: respChan,
 		closer:   false,
 	})