RUM - Capturing async 3rd party JS API requests in a transaction

Hi @mgulbransen,

Thanks for reaching out!

The requests are not being captured by the RUM agent because they are triggered within the iframe that Tableau creates.

The RUM agent instruments the APIs available in the window object that corresponds to your page (top frame). The iframe embeds a different page in your website, which means that has a different instance of the window object. If you want to intercept the requests triggered within the iframe you will need to inject the agent there, too. Not sure if Tableau provide the possibility of adding custom scripts, though.

You can see that the requests are initiated in iframe looking at the initiator data of the network request:

  • You will that the first value in the request initiator chain corresponds to the iframe url.
  • You will see that the javascript files visible there belong to the iframe. For instance, ViewerBootstrap.js, as you can see at the screenshot below:

Cheers,
Alberto

1 Like