util/eventbus: initial debugging facilities for the event bus

Enables monitoring events as they flow, listing bus clients, and
snapshotting internal queues to troubleshoot stalls.

Updates #15160

Signed-off-by: David Anderson <dave@tailscale.com>
This commit is contained in:
David Anderson
2025-03-06 21:51:18 -08:00
committed by Dave Anderson
parent 5ce8cd5fec
commit 853abf8661
6 changed files with 207 additions and 66 deletions

View File

@@ -52,7 +52,7 @@ func (p *Publisher[T]) Publish(v T) {
default:
}
evt := publishedEvent{
evt := PublishedEvent{
Event: v,
From: p.client,
}