How is the transaction._start set? (elastic RUM)

,

Hi!
We want to create an offset to group transactions across iframes with elastic RUM. We are wondering how transaction._start is set and what is it relative to?

We have used the performance.timeOrigin in each initialization, but it seems that it sometimes is slightly off?

Hi @Rbb,

Thanks for exposing your case

We are wondering how transaction._start is set and what is it relative to?

By default RUM uses performance.now

There is a config available (although not documented and that may be removed in future versions) that allows you to set the _start you want:

elasticApm.startTransaction("my-name", "my-type", { startTime: 0 })

Let me know if this helps you

Thanks,
Alberto

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