Beispiel #1
0
func (this *HttpEndpoint) doStats(request *httpRequest) {
	// Update metrics:
	service_time := time.Since(request.ServiceTime())
	request_time := time.Since(request.RequestTime())
	acctstore := this.server.AccountingStore()
	accounting.RecordMetrics(acctstore, request_time, service_time, request.resultCount,
		request.resultSize, request.errorCount, request.warningCount, request.Statement())
}
Beispiel #2
0
func (this *HttpEndpoint) doStats(request *httpRequest) {

	// Update metrics:
	service_time := time.Since(request.ServiceTime())
	request_time := time.Since(request.RequestTime())
	acctstore := this.server.AccountingStore()

	// TODO
	plan.RecordPreparedMetrics(request.Prepared())
	accounting.RecordMetrics(acctstore, request_time, service_time, request.resultCount,
		request.resultSize, request.errorCount, request.warningCount, request.Statement(),
		request.Prepared())
	accounting.LogRequest(acctstore, request_time, service_time, request.resultCount,
		request.resultSize, request.errorCount, request.warningCount, request.Statement(),
		request.SortCount(), request.Prepared(), request.Id().String())
}