we have the JavaScript agent (RUM) in place and are also collecting the logs via filebeat.
In order to be able to correlate the data between RUM and the Logs I would like to add some custom information on the client via the JS agent, e.g. the session id from a cookie.
Is this possible? How? Unfortunately I did not find any useful information so far...
I just found the possibility to correlate APM data and logs via trace ids using the Java agent, but I would like to correlate on an existing information e.g. session id from the application, which is already in the logs.
In the JavaScript agent we have also available distributed tracing, specific documentation for JavaScript agent here
Important to take into account that in the case of RUM the trace data are only appended to API calls (fetch/xhr). If you want to trace the HTML document generation, you would have to set up the RUM agent with appropriate page-load trace details.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.