diff --git a/rustfs/Cargo.toml b/rustfs/Cargo.toml index 41c62a308..3019c060e 100644 --- a/rustfs/Cargo.toml +++ b/rustfs/Cargo.toml @@ -52,7 +52,7 @@ protos.workspace = true query = { workspace = true } rmp-serde.workspace = true rustfs-event-notifier = { workspace = true } -rustfs-obs = { workspace = true, features = ["gpu"] } +rustfs-obs = { workspace = true } rustls.workspace = true rustls-pemfile.workspace = true rustls-pki-types.workspace = true diff --git a/rustfs/src/main.rs b/rustfs/src/main.rs index 80b257bae..ba24558ed 100644 --- a/rustfs/src/main.rs +++ b/rustfs/src/main.rs @@ -249,17 +249,19 @@ async fn run(opt: config::Opt) -> Result<()> { b.build() }; - // Record the PID-related metrics of the current process - let meter = opentelemetry::global::meter("system"); - let obs_result = init_process_observer(meter).await; - match obs_result { - Ok(_) => { - info!("Process observer initialized successfully"); + tokio::spawn(async move { + // Record the PID-related metrics of the current process + let meter = opentelemetry::global::meter("system"); + let obs_result = init_process_observer(meter).await; + match obs_result { + Ok(_) => { + info!("Process observer initialized successfully"); + } + Err(e) => { + error!("Failed to initialize process observer: {}", e); + } } - Err(e) => { - error!("Failed to initialize process observer: {}", e); - } - } + }); let rpc_service = NodeServiceServer::with_interceptor(make_server(), check_auth);