IncPaceAPIHTTPRequestTotal increments the pace_api_http_request_total counter metric
(code, method, path, service, clientID string)
| 119 | |
| 120 | // IncPaceAPIHTTPRequestTotal increments the pace_api_http_request_total counter metric |
| 121 | func 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 |
| 132 | func AddPaceAPIHTTPRequestDurationSeconds(duration float64, method, path, service string) { |
no outgoing calls
no test coverage detected
searching dependent graphs…