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

Function AddPaceAPIHTTPRequestDurationSeconds

maintenance/metric/jsonapi/jsonapi.go:132–138  ·  view source on GitHub ↗

AddPaceAPIHTTPRequestDurationSeconds adds an observed value for the pace_api_http_request_duration_seconds histogram metric

(duration float64, method, path, service string)

Source from the content-addressed store, hash-verified

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) {
133 paceAPIHTTPRequestDurationSeconds.With(prometheus.Labels{
134 "method": method,
135 "path": path,
136 "service": service,
137 }).Observe(duration)
138}
139
140// AddPaceAPIHTTPSizeBytes adds an observed value for the pace_api_http_size_bytes histogram metric.
141func AddPaceAPIHTTPSizeBytes(size float64, method, path, service, requestOrResponse 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…