src/vs/platform/telemetry/common/telemetryUtils.ts/flattenKeys
function flattenKeys(value: Object | undefined): string[] {
	if (!value) {
		return [];
	}
	const result: string[] = [];
	flatKeys(result, '', value);
	return result;
}