MCPcopy Create free account
hub / github.com/cortexproject/cortex / statsValue

Function statsValue

pkg/frontend/transport/handler.go:665–668  ·  view source on GitHub ↗
(name string, d time.Duration)

Source from the content-addressed store, hash-verified

663}
664
665func statsValue(name string, d time.Duration) string {
666 durationInMs := strconv.FormatFloat(float64(d)/float64(time.Millisecond), 'f', -1, 64)
667 return name + ";dur=" + durationInMs
668}
669
670// getStatusCodeFromError extracts http status code based on error, similar to how writeError was implemented.
671func getStatusCodeFromError(err error) int {

Callers 1

writeServiceTimingHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected