Skip to main content

Module Initialize

Module Initialize 

Source
Expand description

Sidecar boot. Idempotent: subsequent calls are no-ops because OnceLock::set returns Err. Pass the Tier so every emitted event is tagged correctly without per-call boilerplate.

Usage:

use CommonLibrary::Telemetry::{Initialize, Tier};

#[tokio::main]
async fn main() {
    Initialize::Fn(Tier::Tier::Air).await;
    // ... rest of sidecar boot ...
}

Functions§

Fn