Settings

Theme

Announcing JS Error Reporting and Ajax Timing in New Relic

blog.newrelic.com

64 points by pablosanchez 12 years ago · 13 comments

Reader

exogen 12 years 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)?

  • sgrock 12 years ago

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

    • xpose2000 12 years ago

      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?

sfeng 12 years ago

If you're interested in an OS alternative, Bucky also times AJAX requests: http://github.hubspot.com/bucky/

SDGT 12 years ago

Just noticed my cool little Browser(beta) menu today!

Cool stuff, especially given that it's being offered for cheap Lite users like myself. I was happy with average req times; this is just icing on the cake!

markwillis82 12 years ago

I've already got this set up. Looks like New Relic are going to be monitoring all the things! Soon

shacharz 12 years ago

How do they do that? they add event listener to windows.onerror?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection