mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-11-02 04:43:26 +08:00
* add events emitted metric to eventbus * properly export grafana dashboard * Add eventbus subscriber and notification time metrics * expose name in subscription * use atomic.AddInt64 for backwards compatibility * make metrics optin * update dashboard json * follow options constructor pattern for eventbus * remove unused type * Review comments * remove event name * remove whitespace diff * address review changes. remove notification time * fix subscribers count * make subscriber queue state timeline * allow custom registerer. Make queue length gauge * eventbus: remove package version from subscriber metrics * eventbus: minor dashboard tweaks --------- Co-authored-by: Marten Seemann <martenseemann@gmail.com>