Open hmdhk opened 5 years ago
I am totally in for this, except there is a caveat that our script wont be able to capture any errors if its lazy loaded and not in the head. Right now, this would happen even for XHR and Fetch, but we can work around that using Resource timing information.
Also, We cannot make any assumptions that our script should be loaded in the head, it is not viable since it can degrade page performance.
A possible solution is to document this snippet!
The ability to long js console.* is critical to us because we want to log angular/react - so we are bypassing apm.js and sending directly to endpoint.
Something like: