Hacker News new | ask | show | jobs
by exogen 4480 days ago
In the post it says they instrument the $.get callback, but that's a jQuery function. So are they instrumenting actual AJAX methods or just jQuery's? Can you get timing data for JSONP requests, which don't actually use AJAX (but jQuery hides that for you)?
1 comments

We watch addEventListener to do the callback timing which jQuery uses under the covers. Any requests going through the browser's xhr interface will get instrumented and reported (this is what $.get uses).
Based on what you said, it sounds like enabling this feature will have no impact on existing front-end load times. What about error reporting... are you guys satisfied with where it's at now or do you guys feel like there is more accurate and more in depth js error reporting in the future?
We have a lot more planned.