Update workflows #109
@ -65,7 +65,7 @@ func TestHistogram(t *testing.T) {
|
|||||||
p.Observe(10)
|
p.Observe(10)
|
||||||
p.Observe(30)
|
p.Observe(30)
|
||||||
mdto := &dto.Metric{}
|
mdto := &dto.Metric{}
|
||||||
p.Write(mdto)
|
_ = p.Write(mdto)
|
||||||
pbuf := bytes.NewBuffer(nil)
|
pbuf := bytes.NewBuffer(nil)
|
||||||
enc := expfmt.NewEncoder(pbuf, expfmt.NewFormat(expfmt.TypeTextPlain))
|
enc := expfmt.NewEncoder(pbuf, expfmt.NewFormat(expfmt.TypeTextPlain))
|
||||||
mf := &dto.MetricFamily{Name: &name, Type: dto.MetricType_HISTOGRAM.Enum(), Metric: []*dto.Metric{mdto}}
|
mf := &dto.MetricFamily{Name: &name, Type: dto.MetricType_HISTOGRAM.Enum(), Metric: []*dto.Metric{mdto}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user