I have the following problem: I know a unit vector in spherical polar coordinates, let's call it $\vec{e}_{s}$, in the form $\vec{e}_{s} = f(r,\theta)\vec{e}_{r} + g(r,\theta)\vec{e}_{\theta} + c\vec{e}_{\phi}$, where $f,g$ are known functions and $c$ is a constant. Furthermore I know that this vector is the tangent of some curve $C$ at every point $(r,\theta,\phi)$. My question is how can I compute the line integral of its divergence along $C$. I know that:$\begin{equation} \int_{C}\nabla\vec{e}_{s}ds=\int_{c}\nabla\vec{e}_{s}\vec{e}_{s}d\vec{r} \end{equation}$
where $d\vec{r}$ is the infinitesimal length element (in this case in spherical coordinates), but I can't get any further. I know that, in principle, given a parametric curve $C(t)$ one can easily compute (numerically) the line integral of a by expressing $(r,\theta) = (r(t),\theta(t))$ but I don't know how can I do this in my case.
I've seen the examples for NIntegrate here for Line integrals, but it seems to me I would need the curve to be parametrized by a single variable and the same to hold for my vector.
I know that this is not specifically a question for Mathematica, but the integral is to be evaluated numerically and I intend to do this in Mathematica.
Any help on this would be greatly appreciated!