MCPcopy
hub / github.com/cortexlabs/cortex / Report

Method Report

pkg/proxy/request_stats.go:86–88  ·  view source on GitHub ↗
(stats RequestStatsReport)

Source from the content-addressed store, hash-verified

84}
85
86func (r *PrometheusStatsReporter) Report(stats RequestStatsReport) {
87 r.inFlightRequests.Set(stats.AvgInFlight)
88}
89
90func (r *PrometheusStatsReporter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
91 r.handler.ServeHTTP(w, req)

Callers 1

mainFunction · 0.95

Calls 1

SetMethod · 0.80

Tested by

no test coverage detected