designcourse
designcourse copied to clipboard
[RUM Profiler] Improvements around Views and Long Tasks
Motivation
- Attribute
view.idshad asthat was not coherent with other attributes. - Views are missing from the exported JSON.
- Long Tasks are missing the RUM Long Task
id(when available) - Long Tasks are full
PerformanceEntryobjects, and we don't need most of it.
Changes
- Fix how we capture views so that we now report them properly.
- Add name to view entry so that Profiling BE can do aggregation using that name. In the UI it would ultimately use the
viewIdto get the latest name. - Make sure attribute fields are coherent.
- Add
idto the Long Task entry, and make it a lighter object than the full performance entry.
Testing
-
Tested locally and in staging that everything is now reported.
-
In staging, you can :
- Open any page,
- Stay on a single page from the initial page load
- Assert that the profile sent has a unique view.
- Assert Long tasks now have
idwhen applicable.
-
[x] Local
-
[x] Staging
-
[x] Unit
-
[ ] End to end
I have gone over the contributing documentation.