feat: add prometheus summary metrics (#3440)

Co-authored-by: chen quan <chenquan.dev@gmail.com>
This commit is contained in:
Shyunn
2023-07-29 16:51:43 +08:00
committed by GitHub
parent 457eb1961b
commit 279123f4a7
4 changed files with 135 additions and 3 deletions

View File

@@ -6,7 +6,6 @@ import (
"github.com/prometheus/client_golang/prometheus/testutil"
"github.com/stretchr/testify/assert"
"github.com/zeromicro/go-zero/core/proc"
)
func TestNewHistogramVec(t *testing.T) {
@@ -48,6 +47,4 @@ func TestHistogramObserve(t *testing.T) {
err := testutil.CollectAndCompare(hv.histogram, strings.NewReader(metadata+val))
assert.Nil(t, err)
proc.Shutdown()
}