While going about testing our RUM implementation, we have come across a scenario where we are interested in correlating all transactions that belong to the same instance (or browser tab) so that we can discern if there would be significant differences in the performance of the same transactions on different tabs for the same user. For this to happen we are wondering if there is some sort of unique ID for each instance of the page on the same session. We have looked at the different ephemeral IDs but those don't seem to apply. New Transaction IDs are generated on each new transaction. Seems like the same with Trace ID. We also don't think that using Spans would be the right thing to use here either.
To illustrate, suppose we have a customer relations management web page. A user can open two or more instances of the page on the same session to attend to multiple clients. On each page are a number of functions such as "update profile" or "add new notes" which we would like to instrument using RUM. Our interest is that each "add new note" is a transaction with its own transaction ID. However, we wanted all "add notes" on that instance of the page to share some sort of correlation ID, which will differ from the correlation ID from the other tab despite it being on the same exact page.
Granted, we can generate our own instance ID each the the page is loaded (and persisted for its lifespan) and add it as a label for all transactions. However, we are hoping that the RUM agent already has something along this line. Any advice? Thanks!