We want to instrument Remix apps with the Elastic APM Node.js Agent
on the server and the Elastic APM Real User Monitoring JavaScript Agent
on the client.
We want the server-rendered page to have the trace id and other data available to the client, so we can correlate the traces
between server and client.
Elastic's distributed tracing docs explain this.
I've been able to make this work with Remix on Express, but it's super hacky, so this gist shows what I'm doing so hopefully
somebody can point me to a better way to do this.