Skip to content

Comment on Announcing JS Error Reporting and Ajax Timing in New Relic

Comments

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)?

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.