extjs - ServiceStack MiniProfiler Ajax Requests Logging -


so, in index.cshtml page, when load page have:

@inherits viewpage <!doctype html> <html>     <head>         <script type="text/javascript" src="ext-all-debug.js"></script>         <script type="text/javascript" src="app.js"></script>         <script type="text/javascript" src="app.ext.js"></script>         <script type="text/javascript" src="dump.js"></script>         @servicestack.miniprofiler.profiler.renderincludes().asraw()      </head>     <body>      </body> </html> 

enter image description here

all good, can see profiling index, bunch of extjs, , 1st ajax call servicestack on server side (in /api/session).

now, in extjs form have customers tab when click sends ajax request /api/customers , have tab when click calls /api/orders.

but, when start click on, customers tab, miniprofiler not add subsequent ajax requests list more? thought miniprofiler can log ajax requests nothing special needs done? why not logging subsequent ajax requests me? missing something?

the current version available through nuget doesn't support intercepting extjs ajax calls. seems there pull request feature, isn't available yet.

here's had around that:

ext.require('ext.ajax'); ext.onready(function () {     ext.ajax.on('requestcomplete', function (e, xhr, settings) {         if (typeof (miniprofiler) != 'undefined') {             var stringids = xhr.getresponseheader('x-miniprofiler-ids');             if (stringids) {                 var ids = typeof json != 'undefined' ? json.parse(stringids) : eval(stringids);                 miniprofiler.fetchresultsexposed(ids);             }         }     }); }); 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -