Skip to main content

Module stats

Module stats 

Source
Expand description

§Server-stats subtrees

Each subsystem contributes a JSON subtree to the [PeerStatsRequestV1] response via a free function named <subsystem>_stats_subtree. The top-level handler in crate::server::handlers::dispatch composes the full document by inserting each returned serde_json::Value at its own root key. Subsystems don’t know their own root path — placement is a handler-side concern, kept here only for cheapness and consistency.

Re-exports§

pub use environment_stats::environment_stats_subtree;
pub use kademlia_stats::kademlia_stats_subtree;
pub use request_counts::request_counts_subtree;
pub use system_stats::system_stats_subtree;

Modules§

environment_stats
kademlia_stats
request_counts
system_stats