mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-31 09:18:28 +00:00
improve code for init_process_observer
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ protos.workspace = true
|
|||||||
query = { workspace = true }
|
query = { workspace = true }
|
||||||
rmp-serde.workspace = true
|
rmp-serde.workspace = true
|
||||||
rustfs-event-notifier = { workspace = true }
|
rustfs-event-notifier = { workspace = true }
|
||||||
rustfs-obs = { workspace = true, features = ["gpu"] }
|
rustfs-obs = { workspace = true }
|
||||||
rustls.workspace = true
|
rustls.workspace = true
|
||||||
rustls-pemfile.workspace = true
|
rustls-pemfile.workspace = true
|
||||||
rustls-pki-types.workspace = true
|
rustls-pki-types.workspace = true
|
||||||
|
|||||||
@@ -249,6 +249,7 @@ async fn run(opt: config::Opt) -> Result<()> {
|
|||||||
b.build()
|
b.build()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
tokio::spawn(async move {
|
||||||
// Record the PID-related metrics of the current process
|
// Record the PID-related metrics of the current process
|
||||||
let meter = opentelemetry::global::meter("system");
|
let meter = opentelemetry::global::meter("system");
|
||||||
let obs_result = init_process_observer(meter).await;
|
let obs_result = init_process_observer(meter).await;
|
||||||
@@ -260,6 +261,7 @@ async fn run(opt: config::Opt) -> Result<()> {
|
|||||||
error!("Failed to initialize process observer: {}", e);
|
error!("Failed to initialize process observer: {}", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
let rpc_service = NodeServiceServer::with_interceptor(make_server(), check_auth);
|
let rpc_service = NodeServiceServer::with_interceptor(make_server(), check_auth);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user