| 128 | } |
| 129 | |
| 130 | type invalidMetric struct { |
| 131 | desc *Desc |
| 132 | err error |
| 133 | } |
| 134 | |
| 135 | // NewInvalidMetric returns a metric whose Write method always returns the |
| 136 | // provided error. It is useful if a Collector finds itself unable to collect |
nothing calls this directly
no outgoing calls
no test coverage detected