MCPcopy Index your code
hub / github.com/InferCore/InferCore / recordHTTPMetric

Method recordHTTPMetric

internal/server/server.go:764–769  ·  view source on GitHub ↗
(path, method string, statusCode int)

Source from the content-addressed store, hash-verified

762}
763
764func (s *Server) recordHTTPMetric(path, method string, statusCode int) {
765 if s.httpReqCounter == nil {
766 return
767 }
768 s.httpReqCounter.WithLabelValues(path, method, strconv.Itoa(statusCode)).Inc()
769}
770
771func (s *Server) initPrometheusMetrics() {
772 reg := prometheus.NewRegistry()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected