In special relativity, is there a prescription to find the coordinate transformation to a general (for instance accelerated) observer? And in GR? Suppose we are in an inertial frame, so that the metric in our coordinates is just the Minkowski metric,
\begin{align}
\text{d}s^2 = -\text{d}t^2 + \text{d}x^2 + \text{d}y^2 + \text{d}z^2.
\end{align}
And suppose that some other (possibly non-inertial) observer $\mathcal O$ is described by a worldline $x^\mu(\tau)$ in our coordinates. 
Given this worldline, does there exist a general prescription for how to relate the coordinate system $(t',x',y',z')$ of the observer $\mathcal O$ to our own coordinate system $(t,x,y,z)$?
If the worldine of $\mathcal O$ is a straight line, then clearly the transformation from $(t,x,y,z)$ to $(t',x',y',z')$ is given by a Poincare transformation, but I'm interested precisely in worldlines for which this is not the case.
As an example, suppose that we work in $1+1$ dimensions and that the worldine of $\mathcal O$ is given by $x^\mu(\tau) = (\frac{1}{\alpha}\sinh(\alpha\tau),\frac{1}{\alpha}\cosh(\alpha\tau))$. This describes an observer with constant acceleration (understood in the appropriate sense). How do we find out what the world looks like to him, and in particular, what line element $(\text{d}s')^2$ he sees?
The question is not necessarily specific to special relativity, of course. More generally, given a worldline in some coordinate system on any spacetime (not just flat spacetime), is there a general prescription to find the coordinate transformation to the observer corresponding to this worldline? (Assuming that there actually exists an observer corresponding to the worldline.)
 A: In a very broad sense, a reference frame (observer) could be defined as a $(1,1)$-tensor field $\mathcal{R}$ on the spacetime $M$ with $Tr(\mathcal{R})=1$. To simplify the matter, we could start with a vector field $\Gamma$ and a one-form $\theta$ such that $\theta(\Gamma)=1$ and set $\mathcal{R}=\Gamma\otimes\theta$ (in this way we are fixing a parametrization for the integral curves of $\Gamma$ describing the worldlines of the observer). 
Roughly speaking, the integral curves of $\Gamma$ defines the "time", while, if $\theta$ is integrable ($\theta\wedge\mathrm{d}\theta=0$), its kernel defines a 3-dimensional distribution the leaves of which may be interpreted as instantaneous spatial slices.
Clearly, you can find a set of coordinates which is adapted to the foliation induced by $\theta$ and its complementary foliation (the integral curves of $\Gamma$) only locally.
This means that, in general, there is no rule to associate with a reference frame (observer) a global coordinate system.
The situation is different for inertial reference frames in Minkowski spacetime because in that case $\mathcal{R}$ splits into the tensor product of a linear vector field with a linear one-form, and there is always a global coordinate system associated with such objects.
Note that the definition of reference frame considered here requires a vector field, hence, a continuum of observer's worldlines.
