MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / logRESTCount

Method logRESTCount

rest/handler.go:827–838  ·  view source on GitHub ↗

logRESTCount will increment the number of public REST requests stat for public REST requests excluding _blipsync requests if they are attached to a database.

()

Source from the content-addressed store, hash-verified

825
826// logRESTCount will increment the number of public REST requests stat for public REST requests excluding _blipsync requests if they are attached to a database.
827func (h *handler) logRESTCount() {
828 if h.db == nil {
829 return
830 }
831 if h.serverType != publicServer {
832 return
833 }
834 if h.isBlipSync() {
835 return
836 }
837 h.db.DbStats.DatabaseStats.NumPublicRestRequests.Add(1)
838}
839
840// reportDbStats will report the public rest request specific stats back to the database
841func (h *handler) reportDbStats() {

Callers 1

Calls 2

isBlipSyncMethod · 0.95
AddMethod · 0.45

Tested by

no test coverage detected