What is the best way to register HTTP requests for a web application, including ajax requests, so I can come back later and ask "I want to know how many times this request was made, and how long it took to complete on average," or "show me the best The 5 Highest Average Time Requests
Are you using a separate database from the current production database to register these things in order to prevent all of these inserts causing I / O to slow down, or does this ultimately have little effect?
Will you fill out the queries and then click on the database or will you do one insert for each query?
Is there a better way to add this request to the timings log, in addition to wrap each request handler in the application logic, for example:
start = CurrentTime()
end = CurrentTime()
Insert(requestName, start, (end - start))
source
share