Skip to main content

flush

Function flush 

Source
pub fn flush(source: &str)
Expand description

Sends accumulated action telemetry to Sentry and clears the counters.

Should be called once on graceful shutdown, while the Sentry guard is still alive. source is used as the Sentry event message (e.g. "UI Action Telemetry" or "Server Action Telemetry"), allowing UI and server events to be distinguished in Sentry.

The event is tagged as usage-telemetry so the logger’s before_send filter lets it through even when crash reports are disabled.