Menu
Public repository / main
akurai-log / examples/smoke.rs
Latest change 17a8bd11df4ab26ca2b7214e4a49524fc4ce4d7f - akurai-log: structured tracing + JS shippers to AkurAI-Monitor by agent
// Manual smoke: ships a few structured events to a running Monitor.
// Run with MONITOR_INGEST_URL / MONITOR_INGEST_TOKEN set.
fn main() {
akurai_log::init("akurai-log-smoke");
tracing::info!(user = "olibuijr", dur_ms = 12, "login ok");
tracing::debug!(target: "smoke::db", rows = 3, "query done");
tracing::error!(code = 500, "boom");
// Give the background shipper time to flush before exit.
std::thread::sleep(std::time::Duration::from_secs(3));
}