Let $X,Y$ be length spaces, and suppose $f:X \to Y$ satisfies $$ (*) \, \, \lim_{y \to x} \frac{d^Y(f(x),f(y))}{d^X(x,y)}=1$$ for all $x \in X$.
Question: Is it true that $f$ preserves lengths of paths?
A naive attempt to prove this hits a problem since we do not know anything about the rates of convergence around different points in $X$.
We can approximate the length of a path $\alpha:[0,1] \to X$ via $L(\alpha) \approx \sum_i d^X(\alpha(t_i),\alpha(t_{i+1}))$ with partitions $\{t_i\}$ which become finer.
A plausible heuristic would be that when $t_i \approx t_{i+1} \Rightarrow \alpha(t_i) \approx \alpha(t_{i+1})$, hence $d^X(\alpha(t_i),\alpha(t_{i+1})) \approx d^Y\big(f(\alpha(t_i)),f(\alpha(t_{i+1}))\big) $. The problem is that the $t_i's$ are changing when we make the partitions finer. (As far as I could see, even trying to use a "structured mechanism of construction" (like putting $t_i^n=\frac{i}{n}$) does not imply the desired result.
Take a path $\alpha:[0,1]\to X$. Fix $\epsilon>0$ and consider the set $A_\epsilon$ of points $x\in \alpha([0,1])$ such that there exist $x_0,\ldots,x_n\in \alpha([0,1])$ with $x_0=\alpha(0)$ and $x_n=x$ such that for every $i=0,\ldots,n-1$ $$\left|\frac{d^Y(f(x_i),f(x_{i+1}))}{d^X(x_i,x_{i+1})}-1\right|<\epsilon\qquad (*)$$ i.e. there is a discrete path with low distorsion connecting $\alpha(0)$ to $x$. It is easy to prove that $A_\epsilon$ is nonempty and both open and closed in $\alpha([0,1])$, therefore by connectedness coincides with $\alpha([0,1])$.
Now given a curve $\gamma:[0,1]\to Z$ with $Z$ metric space and a partition $\underline t=\{t_i\}_{i=1}^m$ with $0\leq t_\leq \ldots\leq t_m\leq 1$, let $$L(\gamma,\underline t):=\sum_{i=1}^{m-1} d(\gamma(t_i),d(t_{i+1}))$$ so that $$L(\gamma)=\sup_{\underline t\in \mathcal{P}(0,1)} L(\gamma,\underline t).$$
Consider now a path $\alpha:[0,1]\to X$, and fix $\epsilon >0$. Then:
To prove this just apply the previous result to each subpath $\alpha|_{[t_i,t_{i+1}]}$ (and use the triangle inequality).
In particular $(1-\epsilon)L(\alpha,\underline t)\leq L(f(\alpha))$ and $L(f(\alpha),\underline t)\leq (1+\epsilon)L(\alpha)$, therefore first passing to the supremum over all partitions and then using that $\epsilon $ was arbitrary we obtain that the lengths are equal.