()
| 184 | } |
| 185 | |
| 186 | func (c *wrappingCollector) unwrapRecursively() Collector { |
| 187 | switch wc := c.wrappedCollector.(type) { |
| 188 | case *wrappingCollector: |
| 189 | return wc.unwrapRecursively() |
| 190 | default: |
| 191 | return wc |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | type wrappingMetric struct { |
| 196 | wrappedMetric Metric |