From 8795682867a2e06406823e5e85e329496a33c524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=92=9A=E5=92=94?= Date: Fri, 31 May 2019 19:21:47 +0800 Subject: [PATCH] fix #34 delete querystring in labels fix #34 --- middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware.go b/middleware.go index d690b9d..7035365 100644 --- a/middleware.go +++ b/middleware.go @@ -137,7 +137,7 @@ func NewPrometheus(subsystem string, customMetricsList ...[]*Metric) *Prometheus MetricsList: metricsList, MetricsPath: defaultMetricPath, ReqCntURLLabelMappingFn: func(c *gin.Context) string { - return c.Request.URL.String() // i.e. by default do nothing, i.e. return URL as is + return c.Request.URL.Path // i.e. by default do nothing, i.e. return URL as is }, }