Ran into this because I had another dependency that caused go to require prometheus/common v0.66.1 (this project's go.mod alone requires only v0.65.0): There is a breaking change in its v0.66.0 release causing
|
metricFamilies, err := parser.TextToMetricFamilies(in) |
to panic because of the scheme not being set.