MCPcopy
hub / github.com/prometheus/client_golang / Describe

Method Describe

prometheus/promhttp/http_test.go:43–45  ·  view source on GitHub ↗
(ch chan<- *prometheus.Desc)

Source from the content-addressed store, hash-verified

41)
42
43func (e errorCollector) Describe(ch chan<- *prometheus.Desc) {
44 ch <- prometheus.NewDesc("invalid_metric", "not helpful", nil, nil)
45}
46
47func (e errorCollector) Collect(ch chan<- prometheus.Metric) {
48 ch <- prometheus.NewInvalidMetric(

Callers

nothing calls this directly

Calls 1

NewDescFunction · 0.92

Tested by

no test coverage detected