1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use once_cell::sync::Lazy; //use rill_engine::tracers::meta::AlertTracer; //use rill_protocol::flow::meta::alert::ALERTS; pub struct GlobalTracers { // TODO: Use own scope here //pub alerts: AlertTracer, } impl GlobalTracers { fn new() -> Self { Self { //alerts: AlertTracer::new(ALERTS.root()), } } /// Mehtod to initialize `Lazy` cell. pub fn touch(&self) {} } pub static TRACERS: Lazy<GlobalTracers> = Lazy::new(GlobalTracers::new);