Skip to content

Commit

Permalink
Change godoc of metrics.RouteResolver (#302)
Browse files Browse the repository at this point in the history
from httptreemux to chi.
  • Loading branch information
tchssk authored Oct 13, 2023
1 parent 1cf62e8 commit dca46ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metrics/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ type (
// RouteResolver is a function that resolves the route of a request used
// to label metrics. Using a route resolver makes it possible to label
// all routes matching a pattern with the same label. As an example
// services using the github.com/dimfled/httptreemux muxer can use
// httptreemux.ContexRoute(r.Context()).
// services using the github.com/go-chi/chi/v5 muxer can use
// chi.RouteContext(r.Context()).RoutePattern().
RouteResolver func(r *http.Request) string

// options contains the configuration for the metricsation.
Expand Down

0 comments on commit dca46ea

Please sign in to comment.