pub fn init_sentry(
config: Option<&SentryConfig>,
release: &str,
) -> Option<ClientInitGuard>Expand description
Initialize Sentry error reporting.
Returns Some(guard) if Sentry was initialized and enabled, None otherwise.
The guard must be kept alive for the entire process lifetime —
dropping it flushes pending events and shuts down the Sentry client.
§Arguments
config- Optional Sentry config from config.tomlrelease- Full release string (e.g., “devboy-tools@0.16.0+abc1234”)