Skip to main content

set_usage_telemetry_enabled

Function set_usage_telemetry_enabled 

Source
pub fn set_usage_telemetry_enabled(enabled: bool)
Expand description

Enables or disables usage-telemetry counter updates.

Callers should set this once at startup (from the enable_usage_telemetry setting) and refresh it whenever the setting changes. Pending counts accumulated while enabled are preserved and will still be flushed.