Background
Here's something I was wondering about. Let the line element between $2$ infinitesimally close points be given by:
$$ ds^2 = (a_s)^2 g^{\mu \nu} dx_\mu dx_\nu$$
Where $g^{\mu \nu}$ is the metric, $dx_i$ is an infinitesimal and $a_s$ is an arbitrary number at each point $s$. Due to the factor of $a_s$ this is obviously discontinuous.
Using this (for absolutely convergent $a_s > 0$) the distance between $2$ points is given by:
$$ d(x_1,x_2) = \lim_{\lambda \to 1} \frac{1}{\zeta(\lambda)} \sum_{s=1}^\infty \frac{a_s}{s^{\lambda}} \times \int_{x_1}^{x_2} \sqrt{g^{\mu \nu} dx_\mu dx_\nu}$$
Question
Is this a valid definition of distance? Is there an analog of the covariant derivative with this metric?