designcourse icon indicating copy to clipboard operation
designcourse copied to clipboard

[RUM Profiler] Improvements around Views and Long Tasks

Open thomasbertet opened this issue 6 months ago • 4 comments

Motivation

  • Attribute view.ids had a s that 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 PerformanceEntry objects, 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 viewId to get the latest name.
  • Make sure attribute fields are coherent.
  • Add id to 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 id when applicable.
  • [x] Local

  • [x] Staging

  • [x] Unit

  • [ ] End to end


I have gone over the contributing documentation.

thomasbertet avatar Mar 28 '25 21:03 thomasbertet