trace: Add prefix to func names of OS & Storage (#11912)

This commit is contained in:
Anis Elleuch 2021-03-27 18:07:07 +01:00 committed by GitHub
parent d8b5adfd10
commit 07ab4d1250
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ func osTrace(s osMetric, startTime time.Time, duration time.Duration, path strin
TraceType: trace.OS,
Time: startTime,
NodeName: globalLocalNodeName,
FuncName: s.String(),
FuncName: "os." + s.String(),
OSStats: trace.OSStats{
Duration: duration,
Path: path,

View file

@ -591,7 +591,7 @@ func storageTrace(s storageMetric, startTime time.Time, duration time.Duration,
TraceType: trace.Storage,
Time: startTime,
NodeName: globalLocalNodeName,
FuncName: s.String(),
FuncName: "storage." + s.String(),
StorageStats: trace.StorageStats{
Duration: duration,
Path: path,