1. A method for monitoring database costs associated with hosting a web service, the method comprising: associating an identifier corresponding to an invocation of an application programming interface with a thread of execution corresponding to the invocation; forming a second query based at least in part on a first query, the first query corresponding to performing at least one function of the application programming interface, the second query comprising the identifier and configured to produce a result upon execution that is unchanged from a result that would be obtained from executing the first query; obtaining cost information based at least in part on executing the second query, the cost information comprising the second query and a cost metric; and storing a record indicative of association between the identifier and the cost metric.