Merge PR #6761: telemetry: use UTC() in wrappers

This commit is contained in:
Adam Bozanich
2020-07-17 15:33:50 -04:00
committed by GitHub
parent 32de79d0aa
commit f33749263f
15 changed files with 33 additions and 33 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ additional lifting required by modules to leverage profiling metrics. To do so,
```go
func (k BaseKeeper) MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error {
defer metrics.MeasureSince([]string{"MintCoins"}, time.Now().UTC())
defer metrics.MeasureSince(time.Now(), "MintCoins")
// ...
}
```