Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The takeRecords()
method of the ReportingObserver
interface returns the current list of reports contained in the observer's report queue, and empties the queue.