How to get stack traces for XHR calls in a browser?
<p>Is there some way that I can get stack traces in a browser every time an HTTP request is made? I'm using Chrome dev tools, but I'll use a different tool, if there is one that can do this.</p>

<p>I suppose I could monkeypatch XMLHttpRequest to throw an error, but that is a fairly awkward solution.</p>

<p>I am trying to determine why an HTTP request was made, and being able to identify a high level function that led to that request would really help.</p>