Skip to main content

metrics_recorder

Function metrics_recorder 

Source
pub(crate) fn metrics_recorder() -> Option<&'static SentryPolicy>
Expand description

Returns the recorder that sends every metric to Sentry, starting the thread that flushes it on the first call. Returns None if init has not bound an enabled client, or if that thread can’t start.

Must be called after the tracing subscriber is installed, so a failure to start the thread is logged.