Files
modules/observability/hyper-p2p-health-probe
2026-05-21 00:07:44 -04:00
..
2026-05-21 00:07:44 -04:00
2026-05-20 22:30:53 -04:00
2026-05-20 22:28:59 -04:00
2026-05-21 00:07:44 -04:00
2026-05-20 22:28:59 -04:00
2026-05-20 21:57:50 -04:00
2026-05-20 21:57:50 -04:00
2026-05-20 23:36:32 -04:00

hyper-p2p-health-probe

Gossip health reports: ok flag, RTT, and custom fields per peer.

Category: Observability

Composes with: hyper-p2p-log-gossip, hyper-p2p-intent-router

Protocol: health-probe/v1

When to use

Mesh liveness dashboards and routing guards on shared topics.

When not to use

Deep APM (use trace/metrics modules instead).

Quick start

const { HyperP2PHealthProbe } = require('hyper-p2p-health-probe')
const probe = new HyperP2PHealthProbe({ topic: 'health-mesh' })
await probe.ready()
probe.report('peer-abc', { ok: true, rttMs: 12 })
console.log(probe.healthyPeers())
await probe.close()

Docs

Test

npm install && npm test