From edf364bf21e14e8b20a680f2376d1002118e6e39 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Tue, 10 May 2022 15:48:07 +0100 Subject: [PATCH] tracing: Add disk path to storage tracing (#14883) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Example: 2022-05-09T17:14:04:000 [STORAGE] storage.ListVols 127.0.0.1:9000 /tmp/xl/2 / 227.834µs 2022-05-09T17:14:04:000 [STORAGE] storage.ListVols 127.0.0.1:9000 /tmp/xl/4 / 236.042µs 2022-05-09T17:14:04:000 [STORAGE] storage.ListVols 127.0.0.1:9000 /tmp/xl/3 / 130.958µs 2022-05-09T17:14:04:000 [STORAGE] storage.ListVols 127.0.0.1:9000 /tmp/xl/1 / 102.875µs --- cmd/xl-storage-disk-id-check.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/xl-storage-disk-id-check.go b/cmd/xl-storage-disk-id-check.go index c8e17757c..5b56b7d63 100644 --- a/cmd/xl-storage-disk-id-check.go +++ b/cmd/xl-storage-disk-id-check.go @@ -517,6 +517,7 @@ func (p *xlStorageDiskIDCheck) updateStorageMetrics(s storageMetric, paths ...st atomic.AddUint64(&p.apiCalls[s], 1) p.apiLatencies[s].add(duration) + paths = append([]string{p.String()}, paths...) if trace { globalTrace.Publish(storageTrace(s, startTime, duration, strings.Join(paths, " "))) }