Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
feat: add metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Apr 17, 2024
1 parent 8b11b40 commit 43f6e22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proposer/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ func (p *Proposer) ProposeOp(ctx context.Context) error {
continue
}

metrics.ProposerProposedTxListsCounter.Inc(1)
metrics.ProposerProposedTxsCounter.Inc(int64(len(txLists[i])))

log.Info("📝 Propose transactions succeeded", "txs", len(txLists[i]))
p.lastProposedAt = time.Now()
}
Expand Down

0 comments on commit 43f6e22

Please sign in to comment.