MCPcopy Index your code
hub / github.com/coder/coder / writeMetrics

Function writeMetrics

scripts/metricsdocgen/scanner/scanner.go:731–735  ·  view source on GitHub ↗

writeMetrics writes all metrics in Prometheus text exposition format.

(metrics []Metric, w io.Writer)

Source from the content-addressed store, hash-verified

729
730// writeMetrics writes all metrics in Prometheus text exposition format.
731func writeMetrics(metrics []Metric, w io.Writer) {
732 for _, m := range metrics {
733 _, _ = fmt.Fprint(w, m.String())
734 }
735}

Callers 1

mainFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected