build(deps): bump the dependencies group with 8 updates (#857)

This commit is contained in:
houseme
2025-11-15 19:51:07 +08:00
committed by GitHub
parent 55e3a1f7e0
commit c242957c6f
3 changed files with 92 additions and 90 deletions
+3 -3
View File
@@ -70,7 +70,7 @@ pub async fn init_obs(endpoint: Option<String>) -> Result<OtelGuard, GlobalError
Ok(otel_guard)
}
/// Set the global guard for OpenTelemetry
/// Set the global guard for OtelGuard
///
/// # Arguments
/// * `guard` - The OtelGuard instance to set globally
@@ -93,11 +93,11 @@ pub async fn init_obs(endpoint: Option<String>) -> Result<OtelGuard, GlobalError
/// # }
/// ```
pub fn set_global_guard(guard: OtelGuard) -> Result<(), GlobalError> {
info!("Initializing global OpenTelemetry guard");
info!("Initializing global guard");
GLOBAL_GUARD.set(Arc::new(Mutex::new(guard))).map_err(GlobalError::SetError)
}
/// Get the global guard for OpenTelemetry
/// Get the global guard for OtelGuard
///
/// # Returns
/// * `Ok(Arc<Mutex<OtelGuard>>)` if guard exists