Skip to main content

CLIENT_GUARD

Static CLIENT_GUARD 

Source
static CLIENT_GUARD: Mutex<Option<ClientInitGuard>>
Expand description

Keeps the Sentry client open until end drops it.

zebrad exits with process::exit, which skips destructors, so the guard must be dropped explicitly to end the release health session and flush queued events and logs.