(ch chan<- *Desc)
| 173 | } |
| 174 | |
| 175 | func (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 | |
| 186 | func (c *wrappingCollector) unwrapRecursively() Collector { |
| 187 | switch wc := c.wrappedCollector.(type) { |