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.)