The RUM API states that a transaction.mark() can be used to set timing marks within a transaction.
However, it seems it can only be used in the context of a startTransaction() and transaction.end(), implying it can only be used for custom transactions. Since the documentation also states that there can only be one transaction at a time, it seems impossible to have a custom transaction run simultaneous with the init() method.
Is there a way to capture timing marks inside the context of an elasticApm.init()?
We'd like to be able to capture specific points in time while taking advantage of init()'s resource and navigation API's metrics.
Our web page is divided into header, hero, headline, body, and footer sections.
We'd like to capture the load times by putting some timing marks after each section to see when they load in relation to the full page and DOM timings.