Skip to content

Commit

Permalink
fix #34 delete querystring in labels
Browse files Browse the repository at this point in the history
fix #34
  • Loading branch information
cupen authored May 31, 2019
1 parent 58963fb commit 8795682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
}

Expand Down

0 comments on commit 8795682

Please sign in to comment.