Hi Ember community,
We are trying to track page load latencies using Datadog RUM. Specifically, the trackViewsManually. The reason why the default view tracking doesn’t work for Ember app is because Ember only change the URL when ember data loaded, however, datadog only start the timer when URL changed, then stop the timer when page’s resource loading “stabilized”. So I thought I should be using trackViewsManually.
However, as Datadog only exposes the startView public API, so I am trying to find the perfect place to inject this call providing the most accurate “view” name.
So I tried to use willTransition or routeWillChange. The former however, does not trigger during the initial first page load. The second, though will be triggered multiple times as it involves some of the loading route (transition.to.name).
So I am kinda of stuck on what’s the best ONE way to do this. Seems combining both might yield some result, but seems quite complicated.
Does anyone have any suggestion on the general proper way to do this? Any insights will be greatly appreciated. Thanks!
2 posts - 1 participant