Skip to main content

init_telemetry

Function init_telemetry 

Source
pub fn init_telemetry() -> TelemetryGuard
Expand description

Initialize Sentry (if DSN env var set) and return a guard that flushes Sentry on drop. MUST be called BEFORE building the tokio runtime; main() MUST hold the returned guard for the entire process lifetime.