Skip to content

Commit

Permalink
Sample latency in GetNetNotional
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy04 committed Oct 10, 2023
1 parent 8f220d0 commit 6ed3070
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/x/perpetuals/keeper/perpetual.go
Original file line number Diff line number Diff line change
Expand Up @@ -749,9 +749,9 @@ func (k Keeper) GetNetNotional(
bigNetNotionalQuoteQuantums *big.Int,
err error,
) {
defer telemetry.ModuleMeasureSince(
defer metrics.ModuleMeasureSinceNowWithSampling(
types.ModuleName,
time.Now(),
0.01,
metrics.GetNetNotional,
metrics.Latency,
)
Expand Down

0 comments on commit 6ed3070

Please sign in to comment.