Let $(X, d, \mu)$ be a metric measure space. Let $P^1(X)$ denote the space of probability measures on $(X,d)$, which have finite first moments, that is: \begin{equation} \nu \in P^1(X) \implies \int d(x, x_0) \ d \nu < \infty \end{equation} for some $x_0 \in X$. Let us endow $P^1(X)$ with the Wasserstein distance $W_1$, that is: \begin{gathered} \forall \nu, \nu' \in P^1(X) \quad W_1( \nu, \nu') = \inf_{\eta} \int_{X \times X} d(x, y) \ d \eta(x,y), \end{gathered} where the infimum is taken over all joint probability distributions $\eta$ which have $\nu$ and $\nu'$ as their marginals.
Now, let $\gamma \colon [0,1] \to P^1(X)$ be an absolutely continuous curve. I would like to know what are the minimal requirements that a function $g \colon X \to [0, \infty]$ has to satisfy so that a function \begin{equation} [0,1] \ni t \mapsto <g, \gamma(t)> = \int_X g \ d \gamma(t) \end{equation} is measurable.
Since convergence in the Wasserstein distance implies the weak convergence of measures along with the convergence of the first moments, if $g$ is continuous then $t \mapsto <g, \gamma(t)>$ is also continuous. However, I wonder whether this condition could be relaxed to, for example, just the measurability of integrability (with respect to $\mu$) of $g$.