Skip to content

Commit

Permalink
Node/Processor: Peg observation metric for us
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley committed Aug 30, 2024
1 parent ddeb560 commit 6130bbb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node/pkg/processor/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ func (p *Processor) handleMessage(k *common.MessagePublication) {
// Broadcast the signature.
ourObs, msg := p.broadcastSignature(v.MessageID(), k.TxHash.Bytes(), digest, signature, shouldPublishImmediately)

// Indicate that we observed this one.
observationsReceivedTotal.Inc()
observationsReceivedByGuardianAddressTotal.WithLabelValues(p.ourAddr.Hex()).Inc()

// Get / create our state entry.
s := p.state.signatures[hash]
if s == nil {
Expand Down

0 comments on commit 6130bbb

Please sign in to comment.