mirror of
https://github.com/minio/minio
synced 2024-11-05 17:34:01 +00:00
tracing: Add disk path to storage tracing (#14883)
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
This commit is contained in:
parent
1e037883b0
commit
edf364bf21
1 changed files with 1 additions and 0 deletions
|
@ -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, " ")))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue