Server Side Rendering and distributed tracing

Hi there,

we are trying to implement distributed tracing on our frontend APM, however we are using SSR and that causes the first page load to miss useful tracing information.

'page-load' example:
Screenshot_2019-09-18 articles

'route-change': example:
Screenshot_2019-09-18 communities

The application is built with Nextjs and react, as well as using a zeit now serverless deployment.

Should we initialise with the node agent instead of the js agent on the server side or is there something else I'm missing?

Hi Davide,

Thanks for reaching out. You just need a bit of config changes for the page-load transaction from the Node.js agent side. You can find the relevant information on this issue comments https://github.com/elastic/apm-agent-rum-js/issues/425#issuecomment-532648711

Let us know if you need any help.

Thanks,
Vignesh

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.