Is there a theory of metric spaces in which the distance between a given pair of points need not be defined?
I'm aware that there is a theory of partial metric spaces, but these deal with a different generalization of metric spaces, viz. ones in which $d(x,x)=0$ does not necessarily hold.
What I'm interested in here is the case where the metric axioms hold as far as all distances appearing are defined (I assume that $d(x,x)=0$ is always defined, and $d(y,x)=d(x,y)$ is defined if $d(x,y)$ is defined), but there may be pairs of points for which the distance is not defined. (A trivial example would be a disjoint union of two metric spaces.) Is there a theory of such structures?
In particular I'm interested in conditions under which the partially-defined metric can be consistently extended into a metric.