Files
modules/observability/hyper-p2p-health-probe
Raven ScottandCursor cd048cb8c8
Hyper-P2P Module Tests / unit-all (push) Has been cancelled
feat(observability,encoding,network,pubsub): expand support category modules
- stats-exporter: snapshot history, compare, filter
- health-probe: unhealthyPeers, averageRtt, pruneStale
- schema-validator: assertValid, validateBatch, maxLength rules
- compact-codec-bridge: encodeBatch, listCodecs
- discovery-health: topPeers, pruneStale, averageRtt
- peer-bootstrap-store: removeBootstrap, findByHint
- retained-messages: retainBatch, totalRetained, channelCount
- ci: restore flat-repo production test workflow

Co-authored-by: Cursor <[email protected]>
2026-05-21 02:18:17 -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 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