Skip to main content

init_from_env

Function init_from_env 

Source
pub fn init_from_env() -> RuntimeOptimizationsSnapshot
Expand description

Force-resolve all toggles. Called once at startup before any query path reads them. Subsequent calls are no-ops thanks to OnceLock::set.

Returns the resolved snapshot for telemetry. If toggles were already resolved (e.g. by an earlier explicit call), the existing snapshot is returned unchanged.