Update the ResourceEvent schema to exactly match PerformanceResourceTiming in aws-rum-web 2.0. I also cleaned up some tech debt, as highlighted in the comments.
All durations are converted into start and end timestamps (excluding overall duration)
No experimental fields are included
Non-W3C fields such as fileType and targetUrl are dropped
In addition:
PerformanceResourceTimingEvents are sampled by first N FIFO, instead of random sampling. This also removes a bug in the random sampling logic when eventLimit is large.
Derive fileType from the initiatorType only, not the file extension.
Update the ResourceEvent schema to exactly match PerformanceResourceTiming in aws-rum-web 2.0. I also cleaned up some tech debt, as highlighted in the comments.
In addition: