fn start_with<T>(
policy: &OnceLock<SentryPolicy>,
spawn_flush: impl FnOnce() -> Result<T>,
) -> Option<&SentryPolicy>Expand description
Creates the policy in policy only if spawn_flush starts the threads that flush it.
Without those threads, the policy would keep every histogram value it records, so Zebra doesn’t record metrics for Sentry at all.