Skip to main content

start

Function start 

Source
pub(super) fn start() -> Option<&'static SentryPolicy>
Expand description

Returns the policy, creating it, a thread that flushes it every FLUSH_INTERVAL, and a thread that checks the Sentry transport for those flushes, on the first call. Returns None and logs an error if those threads can’t start.

Must be called after the tracing subscriber is installed, so that error reaches the logs.