fn add_metric_attributes(
attributes: &mut Map<Cow<'static, str>, LogAttribute>,
network: Option<&str>,
chain_position: Option<ChainPosition>,
uptime: Duration,
)Expand description
Adds the network, the network upgrade at the tip, whether the node is near the tip, and the process uptime to a metric’s attributes, keeping any the metric already has.
Unlike events and logs, metrics don’t get the tip height, because a block timing value is often for a block above the tip.