chore(io-metrics): make the server label injected, drop two leaf-violating deps (#6051)

This commit is contained in:
Zhengchao An
2026-08-13 11:20:18 +08:00
committed by GitHub
parent 3a0dbccc2e
commit db4707f187
5 changed files with 45 additions and 25 deletions
+3
View File
@@ -164,6 +164,9 @@ pub(crate) async fn local_node_name() -> String {
}
pub(crate) async fn set_local_node_name(node_name: String) {
// Also stamp the internode-metrics server label: io-metrics is a leaf
// crate and no longer resolves node identity itself (backlog#1834).
rustfs_io_metrics::internode_metrics::set_internode_server_label(node_name.as_str());
rustfs_common::set_global_local_node_name(&node_name).await;
}