InfoVec is the vector version for Info. As an info metric never changes, we wouldn't really need to wrap GetMetricWithLabelValues and GetMetricWith because Info has no additional methods compared to the vanilla Metric that the unwrapped MetricVec methods return. However, to demonstrate all there is
| 49 | // to do to fully implement a vector for a custom Metric implementation, we do |
| 50 | // it in this example anyway. |
| 51 | type InfoVec struct { |
| 52 | *prometheus.MetricVec |
| 53 | } |
| 54 | |
| 55 | func NewInfoVec(name, help string, labelNames []string) *InfoVec { |
| 56 | desc := prometheus.NewDesc(name, help, labelNames, nil) |
nothing calls this directly
no outgoing calls
no test coverage detected