WrapCollectorWithPrefix returns a Collector wrapping the provided Collector. The wrapped Collector will add the provided prefix to the name of all Metrics it collects. See the documentation of WrapCollectorWith for more details on the use case.
(prefix string, c Collector)
| 106 | // |
| 107 | // See the documentation of WrapCollectorWith for more details on the use case. |
| 108 | func WrapCollectorWithPrefix(prefix string, c Collector) Collector { |
| 109 | return &wrappingCollector{ |
| 110 | wrappedCollector: c, |
| 111 | prefix: prefix, |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | type wrappingRegisterer struct { |
| 116 | wrappedRegisterer Registerer |
no outgoing calls