add metrics

This commit is contained in:
Pascal Fischer
2025-06-25 12:09:06 +02:00
parent 905a3481ec
commit ed6ed4a597
3 changed files with 65 additions and 9 deletions

View File

@@ -79,7 +79,7 @@ func (p *PeersUpdateManager) CreateChannel(ctx context.Context, peerID string) *
delete(p.peerChannels, peerID)
}
// mbragin: todo shouldn't it be more? or configurable?
buffer := NewUpdateBuffer()
buffer := NewUpdateBuffer(p.metrics.UpdateChannelMetrics())
log.WithContext(ctx).Debugf("opened updates channel for a peer %s", peerID)