1 2 3 4 5
use once_cell::sync::Lazy; use uuid::Uuid; pub static INSTANCE_ID: Lazy<String> = Lazy::new(|| std::env::var("AGP_INSTANCE_ID").unwrap_or_else(|_| Uuid::new_v4().to_string()));