Skip to content

Commit a936fee

Browse files
committed
Add nonce metrics
1 parent db04b58 commit a936fee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/code/async/nonce/metrics.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ func (p *service) metricsGaugeWorker(ctx context.Context) error {
4545
}
4646
recordNonceCountEvent(ctx, nonce.EnvironmentCvm, "Bii3UFB9DzPq6UxgewF5iv9h1Gi8ZnP6mr7PtocHGNta", state, nonce.PurposeClientTransaction, count)
4747

48+
count, err = p.data.GetNonceCountByStateAndPurpose(ctx, nonce.EnvironmentCvm, "9Du5GuKYT21ydLQ9KzUTWWQ7NKdwoXB15y4ypNnnpbJa", state, nonce.PurposeClientTransaction)
49+
if err != nil {
50+
continue
51+
}
52+
recordNonceCountEvent(ctx, nonce.EnvironmentCvm, "9Du5GuKYT21ydLQ9KzUTWWQ7NKdwoXB15y4ypNnnpbJa", state, nonce.PurposeClientTransaction, count)
53+
4854
count, err = p.data.GetNonceCountByStateAndPurpose(ctx, nonce.EnvironmentSolana, nonce.EnvironmentInstanceSolanaMainnet, state, nonce.PurposeOnDemandTransaction)
4955
if err != nil {
5056
continue

0 commit comments

Comments
 (0)