Skip to content

Commit

Permalink
Add missed comment on exported function
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostman committed Jun 19, 2018
1 parent b413f09 commit 8c0f655
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/middleware/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type prometheusHandler struct {
responseSize *prometheus.HistogramVec
}

// NewPrometheusHandler returns middleware that collects HTTP req/resp specific metrics
func NewPrometheusHandler(serviceName string, handler http.Handler) http.Handler {
requests := prometheus.NewCounterVec(
prometheus.CounterOpts{
Expand Down

0 comments on commit 8c0f655

Please sign in to comment.