src/vs/platform/telemetry/common/telemetryUtils.ts/isLoggingOnly
export function isLoggingOnly(productService: IProductService, environmentService: IEnvironmentService): boolean {
	// Logging only mode is only for OSS
	if (environmentService.isBuilt) {
		return false;
	}

	if (environmentService.disableTelemetry) {
		return false;
	}

	if (productService.enableTelemetry && productService.aiConfig?.ariaKey) {
		return false;
	}

	return true;
}