pub fn is_telemetry_disabled() -> boolExpand description
Check if telemetry is disabled via environment variables.
Telemetry is disabled when:
SOCKET_TELEMETRY_DISABLEDis"1"or"true"(legacySOCKET_PATCH_TELEMETRY_DISABLEDstill honored with warning)VITESTis"true"(test environment)SOCKET_OFFLINEis"1"or"true"(airgap mode — the telemetry endpoint is a network call, so honoring--offline/SOCKET_OFFLINEhere keeps every command compliant with the strict-airgap contract)
Note that the CLI also exposes a --no-telemetry flag; when that flag
is set the CLI dispatcher sets SOCKET_TELEMETRY_DISABLED=1 for the
duration of the process so this check stays the single source of truth.