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

Method Describe

prometheus/wrap.go:175–184  ·  view source on GitHub ↗
(ch chan<- *Desc)

Source from the content-addressed store, hash-verified

173}
174
175func (c *wrappingCollector) Describe(ch chan<- *Desc) {
176 wrappedCh := make(chan *Desc)
177 go func() {
178 c.wrappedCollector.Describe(wrappedCh)
179 close(wrappedCh)
180 }()
181 for desc := range wrappedCh {
182 ch <- wrapDesc(desc, c.prefix, c.labels)
183 }
184}
185
186func (c *wrappingCollector) unwrapRecursively() Collector {
187 switch wc := c.wrappedCollector.(type) {

Callers

nothing calls this directly

Calls 2

wrapDescFunction · 0.85
DescribeMethod · 0.65

Tested by

no test coverage detected