While working on performance improvement, I came across situation where
Application logs giving X time to execute all the steps(using Stopwatch)
IIS logs, which also suggest X time-taken for that request.
But our client another API, which is sending that request logs a time which is X+Y. Where Y is really big.
What I suspect is that for Y times that request was waiting in IIS queue or in ASP.NET Queue.
So I want that data. Which request waited how much time in the queue?
I came across a Performance Counter "Request Wait Time" but this only gives the wait time for the last served request.
Any suggestion on how to monitor request for this metric?