(reg prometheus.Registerer)
| 856 | } |
| 857 | |
| 858 | func newThirdPartyLibFoo(reg prometheus.Registerer) struct{} { |
| 859 | foo := struct{}{} |
| 860 | // Register the metrics of the third party lib. |
| 861 | c := promauto.With(reg).NewGauge(prometheus.GaugeOpts{ |
| 862 | Name: "foo", |
| 863 | Help: "Registered forever.", |
| 864 | }) |
| 865 | c.Set(1) |
| 866 | return foo |
| 867 | } |
no test coverage detected