MCPcopy Create free account
hub / github.com/pace/bricks / IncPaceAPIHTTPRequestTotal

Function IncPaceAPIHTTPRequestTotal

maintenance/metric/jsonapi/jsonapi.go:121–129  ·  view source on GitHub ↗

IncPaceAPIHTTPRequestTotal increments the pace_api_http_request_total counter metric

(code, method, path, service, clientID string)

Source from the content-addressed store, hash-verified

119
120// IncPaceAPIHTTPRequestTotal increments the pace_api_http_request_total counter metric
121func IncPaceAPIHTTPRequestTotal(code, method, path, service, clientID string) {
122 paceAPIHTTPRequestTotal.With(prometheus.Labels{
123 "code": code,
124 "method": method,
125 "path": path,
126 "service": service,
127 "client_id": clientID,
128 }).Inc()
129}
130
131// AddPaceAPIHTTPRequestDurationSeconds adds an observed value for the pace_api_http_request_duration_seconds histogram metric
132func AddPaceAPIHTTPRequestDurationSeconds(duration float64, method, path, service string) {

Callers 1

WriteHeaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…