init_sentry

Function init_sentry 

Source
pub fn init_sentry(config: &Config) -> Option<ClientInitGuard>
Expand description

Initializes the Sentry error-reporting client, if a DSN is configured.

Returns None when config.sentry.dsn is not set. The returned [sentry::ClientInitGuard] must be kept alive for the duration of the process; dropping it flushes the event queue and shuts down the Sentry client.